mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
67e1c87012
Replace former uci-defaults.sh implementation with the uci-defaults-new.sh one and update all users accordingly. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47867
26 lines
462 B
Bash
Executable File
26 lines
462 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/oxnas.sh
|
|
|
|
board=$(oxnas_board_name)
|
|
board_config_update
|
|
|
|
case $board in
|
|
stg-212)
|
|
ucidef_set_led_default "power" "power" "zyxel:blue:status" "1"
|
|
ucidef_set_led_usbdev "usb" "USB" "$1" "1-1"
|
|
;;
|
|
kd20)
|
|
ucidef_set_led_default "power" "power" "kd20:blue:status" "1"
|
|
;;
|
|
pogoplugpro | pogoplugv3)
|
|
ucidef_set_led_default "power" "power" "pogoplug:blue:internal" "1"
|
|
;;
|
|
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|