add default network/leds config (#6759)
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com> SVN-Revision: 25171
This commit is contained in:
parent
5cfbf3936e
commit
6ec329be64
2 changed files with 64 additions and 0 deletions
27
target/linux/adm5120/base-files/etc/config/network
Normal file
27
target/linux/adm5120/base-files/etc/config/network
Normal file
|
@ -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
|
37
target/linux/adm5120/base-files/etc/config/system
Normal file
37
target/linux/adm5120/base-files/etc/config/system
Normal file
|
@ -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
|
||||
|
Loading…
Reference in a new issue