ar71xx: make uci-default scripts executable
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / base-files / etc / uci-defaults / nbg460n_550n_550nh
1 #!/bin/sh
2 #
3 # Copyright (C) 2010 OpenWrt.org
4 #
5
6 . /lib/ar71xx.sh
7
8 board=$(ar71xx_board_name)
9
10 nbg460n_550n_550nh_set_wlan_led() {
11 uci batch <<EOF
12 set system.wlan_led=led
13 set system.wlan_led.name='WLAN'
14 set system.wlan_led.sysfs='nbg460n:green:wlan'
15 set system.wlan_led.trigger='phy0rx'
16 commit system
17 EOF
18 }
19
20 if [ "${board}" == "nbg460n_550n_550nh" ]; then
21 nbg460n_550n_550nh_set_wlan_led
22 fi