mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
f12a32630f
Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin <dev@kresin.me>
28 lines
537 B
Bash
Executable File
28 lines
537 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board=$(board_name)
|
|
board_config_update
|
|
|
|
case $board in
|
|
akitio)
|
|
ucidef_set_led_default "status" "status" "akitio:red:status" "0"
|
|
;;
|
|
stg212)
|
|
ucidef_set_led_default "power" "power" "zyxel:blue:status" "1"
|
|
ucidef_set_led_usbdev "usb" "USB" "zyxel:orange:copy" "1-1"
|
|
;;
|
|
kd20)
|
|
ucidef_set_led_default "power" "power" "kd20:blue:status" "1"
|
|
;;
|
|
pogoplug-pro | pogoplug-v3)
|
|
ucidef_set_led_default "power" "power" "pogoplug:blue:internal" "1"
|
|
;;
|
|
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|