ar71xx: make uci-default scripts executable
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / base-files / etc / uci-defaults / dir-825
1 #!/bin/sh
2 #
3 # Copyright (C) 2010 OpenWrt.org
4 #
5
6 . /lib/ar71xx.sh
7
8 board=$(ar71xx_board_name)
9
10 dir825b1_setup_leds() {
11 uci batch <<EOF
12 set system.usb_led=led
13 set system.usb_led.name='USB'
14 set system.usb_led.sysfs='dir825b1:blue:usb'
15 set system.usb_led.trigger='usbdev'
16 set system.usb_led.dev='1-1'
17 set system.usb_led.interval='50'
18 commit system
19 EOF
20 }
21
22 if [ "${board}" == "dir-825-b1" ]; then
23 dir825b1_setup_leds
24 fi