blob: 7a31024396aab715a88bfc5e4c013a4368b0a39a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
#
# Copyright (C) 2010 OpenWrt.org
#
. /lib/ar71xx.sh
board=$(ar71xx_board_name)
wrt160nl_fixtrx() {
mtd -o 32 fixtrx firmware
}
wrt160nl_setup_leds() {
uci batch <<EOF
set system.wlan_led=led
set system.wlan_led.name='WLAN'
set system.wlan_led.sysfs='wrt160nl:blue:wlan'
set system.wlan_led.trigger='phy0tpt'
commit system
EOF
}
if [ "${board}" == "wrt160nl" ]; then
wrt160nl_fixtrx
wrt160nl_setup_leds
fi
|