3 # Copyright (C) 2011 OpenWrt.org
14 uci
-q get system.
$cfg && return 0
18 set system.$cfg.name='$name'
19 set system.$cfg.sysfs='$sysfs'
20 set system.$cfg.trigger='netdev'
21 set system.$cfg.dev='$dev'
22 set system.$cfg.mode='link tx rx'
33 uci
-q get system.
$cfg && return 0
37 set system.$cfg.name='$name'
38 set system.$cfg.sysfs='$sysfs'
39 set system.$cfg.trigger='usbdev'
40 set system.$cfg.dev='$dev'
41 set system.$cfg.interval='50'
52 uci
-q get system.
$cfg && return 0
56 set system.$cfg.name='$name'
57 set system.$cfg.sysfs='$sysfs'
58 set system.$cfg.trigger='$trigger'
70 uci
-q get system.
$cfg && return 0
74 set system.$cfg.name='$name'
75 set system.$cfg.sysfs='$sysfs'
76 set system.$cfg.trigger='$trigger'
77 set system.$cfg.port_mask='$port_mask'
88 uci
-q get system.
$cfg && return 0
92 set system.$cfg.name='$name'
93 set system.$cfg.sysfs='$sysfs'
94 set system.$cfg.default='$default'
101 board
=$
(ar71xx_board_name
)
105 set_led_netdev
"wan" "WAN" "alfa:green:led_2" "eth0"
106 set_led_netdev
"lan" "LAN" "alfa:green:led_3" "eth1"
110 set_led_default
"act" "act" "rb750:green:act" "1"
111 set_led_netdev
"port1" "port1" "rb750:green:port1" "eth1"
112 set_led_switch
"port2" "port2" "rb750:green:port2" "switch0" "0x10"
113 set_led_switch
"port3" "port3" "rb750:green:port3" "switch0" "0x08"
114 set_led_switch
"port4" "port4" "rb750:green:port4" "switch0" "0x04"
115 set_led_switch
"port5" "port5" "rb750:green:port5" "switch0" "0x02"
119 set_led_usbdev
"usb" "USB" "dir825b1:blue:usb" "1-1"
123 set_led_netdev
"lan" "LAN" "alfa:blue:lan" "eth0"
124 set_led_netdev
"wan" "WAN" "alfa:blue:wan" "eth1"
125 set_led_wlan
"wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
126 set_led_usbdev
"usb" "USB" "alfa:blue:usb" "1-1"
130 set_led_usbdev
"usb" "USB" "planex:green:usb" "1-1"
134 set_led_wlan
"wlan" "WLAN" "planex:green:wlan" "phy0tpt"
138 set_led_wlan
"wlan" "WLAN" "nbg460n:green:wlan" "phy0tpt"
142 set_led_netdev
"port1" "port1" "om2p:blue:wan" "eth0"
143 set_led_netdev
"port2" "port2" "om2p:blue:lan" "eth1"
147 set_led_usbdev
"usb" "USB" "tp-link:green:3g" "1-1"
148 set_led_wlan
"wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
149 set_led_netdev
"lan" "LAN" "tp-link:green:lan" "eth0"
154 set_led_usbdev
"usb" "USB" "tp-link:green:3g" "1-1"
158 set_led_netdev
"lan" "LAN" "tp-link:green:lan" "eth0"
162 set_led_netdev
"wan" "WAN" "tp-link:green:wan" "eth1"
163 set_led_switch
"lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x02"
164 set_led_switch
"lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x04"
165 set_led_switch
"lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
166 set_led_switch
"lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
170 set_led_netdev
"wan" "WAN" "tp-link:green:wan" "eth1"
171 set_led_switch
"lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
172 set_led_switch
"lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
173 set_led_switch
"lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
174 set_led_switch
"lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
178 set_led_wlan
"wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
182 set_led_usbdev
"usb" "USB" "tp-link:green:usb" "1-1"
183 set_led_wlan
"wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
187 set_led_usbdev
"usb" "USB" "tp-link:green:usb" "1-1"
191 set_led_wlan
"wlan" "WLAN" "wrt160nl:blue:wlan" "phy0tpt"
195 set_led_default
"wan" "WAN LED (green)" "wndr3700:green:wan" "0"
196 set_led_usbdev
"usb" "USB" "wndr3700:green:usb" "1-1"
200 set_led_wlan
"wlan" "Wireless" "buffalo:green:wireless" "phy0tpt"
201 set_led_netdev
"router" "Router" "buffalo:green:router" "eth1"
202 set_led_usbdev
"usb" "USB" "buffalo:blue:usb" "1-1"
206 set_led_netdev
"lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
210 set_led_netdev
"lan1" "lan1" "zcn-1523h:green:lan1" "eth0"
211 set_led_netdev
"lan2" "lan2" "zcn-1523h:green:lan2" "eth1"
215 [ "$COMMIT_SYSTEM" == "1" ] && uci commit system
This page took 0.075905 seconds and 5 git commands to generate.