aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2011-01-27 21:49:42 +0000
committerFlorian Fainelli <florian@openwrt.org>2011-01-27 21:49:42 +0000
commitbcc1c50eb99b12954d39de08452b597e0b400a38 (patch)
treea1acac31208611b8a8b2cd740d9e6856996021b9 /target/linux
parent7c2bebb4d4adaed91b53a9cc6edb15211fb85984 (diff)
downloadupstream-bcc1c50eb99b12954d39de08452b597e0b400a38.tar.gz
upstream-bcc1c50eb99b12954d39de08452b597e0b400a38.tar.bz2
upstream-bcc1c50eb99b12954d39de08452b597e0b400a38.zip
[adm5120] add default network/leds config (#6759)
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25171 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/adm5120/base-files/etc/config/network27
-rw-r--r--target/linux/adm5120/base-files/etc/config/system37
2 files changed, 64 insertions, 0 deletions
diff --git a/target/linux/adm5120/base-files/etc/config/network b/target/linux/adm5120/base-files/etc/config/network
new file mode 100644
index 0000000000..df2f201053
--- /dev/null
+++ b/target/linux/adm5120/base-files/etc/config/network
@@ -0,0 +1,27 @@
+#### VLAN configuration
+config switch
+ option eth0 "0 1 2 3"
+ option eth1 "4"
+
+
+#### Loopback configuration
+config interface loopback
+ option ifname "lo"
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
+
+#### LAN configuration
+config interface lan
+ option type bridge
+ option ifname "eth0"
+ option proto static
+ option ipaddr 192.168.1.1
+ option netmask 255.255.255.0
+
+
+#### WAN configuration
+config interface wan
+ option ifname "eth1"
+ option proto dhcp
diff --git a/target/linux/adm5120/base-files/etc/config/system b/target/linux/adm5120/base-files/etc/config/system
new file mode 100644
index 0000000000..30f92ccc90
--- /dev/null
+++ b/target/linux/adm5120/base-files/etc/config/system
@@ -0,0 +1,37 @@
+config system
+ option hostname OpenWrt
+ option timezone UTC
+
+config rdate
+ option interface wan
+
+config led
+ option sysfs lan1
+ option trigger port_state
+ option port_state link_act
+
+config led
+ option sysfs lan2
+ option trigger port_state
+ option port_state link_act
+
+config led
+ option sysfs lan3
+ option trigger port_state
+ option port_state link_act
+
+config led
+ option sysfs lan4
+ option trigger port_state
+ option port_state link_act
+
+config led
+ option sysfs wan
+ option trigger port_state
+ option port_state link_act
+
+config led
+ option sysfs wlan
+ option trigger netdev
+ option dev wlan0
+