Browse Source

system level options for hooking up to local wifi

Danja Vasiliev 10 years ago
parent
commit
0094e2642c

+ 13 - 14
openwrt/DIR505A1/etc/config/system

@@ -1,21 +1,20 @@
-
 config system
-	option hostname 'sg'
+  option hostname 'sg'
   ## Made in Berlin
-	option timezone 'CET-1CEST'
+  option timezone 'CET-1CEST'
 
 config timeserver 'ntp'
-	list server '0.openwrt.pool.ntp.org'
-	list server '1.openwrt.pool.ntp.org'
-	list server '2.openwrt.pool.ntp.org'
-	list server '3.openwrt.pool.ntp.org'
-	option enable_server '0'
+  list server '0.openwrt.pool.ntp.org'
+  list server '1.openwrt.pool.ntp.org'
+  list server '2.openwrt.pool.ntp.org'
+  list server '3.openwrt.pool.ntp.org'
+  option enable_server '0'
 
 config led 'led_lan'
-	option name 'LAN'
-	option sysfs 'd-link:green:power'
-	option trigger 'netdev'
-	option dev 'eth1'
-	option dev 'wlan0'
-	option mode 'link tx rx'
+  option name 'LAN'
+  option sysfs 'd-link:green:power'
+  option trigger 'netdev'
+  option dev 'eth1'
+  option dev 'wlan0'
+  option mode 'link tx rx'
 

+ 5 - 0
openwrt/common/etc/config/network

@@ -17,3 +17,8 @@ config interface 'lan'
 	option netmask '255.255.255.0'
 	option ip6assign '60'
 
+#config interface 'wan'
+## strangely enough 'wlan0-1' goes to 'lan' bridge
+## and 'wlan0' becomes 'wan' interface. works thou!
+#  option ifname 'wlan0'
+#  option proto 'dhcp'

+ 9 - 1
openwrt/common/etc/config/wireless

@@ -12,5 +12,13 @@ config wifi-iface
 	option network 'lan'
 	option mode 'ap'
 	option encryption 'none'
-	option ssid 'superglue'
+  option ssid 'superglue'
+
+#config wifi-iface
+#  option device 'radio0'
+#  option network 'wan'
+#  option mode 'sta'
+#  option ssid '<bssid>'
+#  option encryption 'psk2'
+#  option key '<passphrase>'