4f017c871d
remove /lib/oxnas.sh platform-specific board-detection and use generic which is based on device-tree compatible node instead. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
27 lines
567 B
Bash
Executable file
27 lines
567 B
Bash
Executable file
#!/bin/sh
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board=$(board_name)
|
|
board_config_update
|
|
|
|
case $board in
|
|
"akitio,myloud")
|
|
ucidef_set_led_default "status" "status" "akitio:red:status" "0"
|
|
;;
|
|
"mitrastar,stg-212")
|
|
ucidef_set_led_default "power" "power" "zyxel:blue:status" "1"
|
|
ucidef_set_led_usbdev "usb" "USB" "zyxel:orange:copy" "1-1"
|
|
;;
|
|
"shuttle,kd20")
|
|
ucidef_set_led_default "power" "power" "kd20:blue:status" "1"
|
|
;;
|
|
"cloudengines,pogoplug"*)
|
|
ucidef_set_led_default "power" "power" "pogoplug:blue:internal" "1"
|
|
;;
|
|
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|