[package] libpcap: explicitely disable libnl support to prevent different build resul...
[openwrt.git] / target / linux / cns21xx / base-files / etc / uci-defaults / ns-k330
1 #!/bin/sh
2 #
3 # Copyright (C) 2010 OpenWrt.org
4 #
5
6 . /lib/cns21xx.sh
7
8 board=$(get_board_name)
9
10 ns_k330_set_leds() {
11 uci batch <<EOF
12 set system.led_eth_orange='led'
13 set system.led_eth_orange.name='eth_orange'
14 set system.led_eth_orange.sysfs='ns-k330:orange:eth'
15 set system.led_eth_orange.trigger='netdev'
16 set system.led_eth_orange.dev='eth0'
17 set system.led_eth_orange.mode='link'
18 set system.led_eth_green='led'
19 set system.led_eth_green.name='eth_green'
20 set system.led_eth_green.sysfs='ns-k330:green:eth'
21 set system.led_eth_green.trigger='netdev'
22 set system.led_eth_green.dev='eth0'
23 set system.led_eth_green.mode='tx rx'
24 set system.usb_led1=led
25 set system.usb_led1.name='USB'
26 set system.usb_led1.sysfs='ns-k330:green:usb1'
27 set system.usb_led1.trigger='usbdev'
28 set system.usb_led1.dev='1-1'
29 set system.usb_led1.interval='50'
30 set system.usb_led2=led
31 set system.usb_led2.name='USB'
32 set system.usb_led2.sysfs='ns-k330:green:usb2'
33 set system.usb_led2.trigger='usbdev'
34 set system.usb_led2.dev='1-2'
35 set system.usb_led2.interval='50'
36 commit system
37 EOF
38 }
39
40 if [ "${board}" == "ns-k330" ]; then
41 ns_k330_set_leds
42 fi
This page took 0.046014 seconds and 5 git commands to generate.