summaryrefslogtreecommitdiff
path: root/target/linux/oxnas/base-files
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2016-04-19 20:12:41 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2016-04-19 20:12:41 +0000
commit012da658a4565b60d2cae8d888fcd487c8ecfac9 (patch)
treeaf3a63c081ba627073f6e5cea59ac2db838b8466 /target/linux/oxnas/base-files
parentd1005862c2c0a298d2ff492f531aa266857dbde8 (diff)
downloadmtk-20170518-012da658a4565b60d2cae8d888fcd487c8ecfac9.zip
mtk-20170518-012da658a4565b60d2cae8d888fcd487c8ecfac9.tar.gz
mtk-20170518-012da658a4565b60d2cae8d888fcd487c8ecfac9.tar.bz2
oxnas: add support for Akitio MyCloud mini
Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49197
Diffstat (limited to 'target/linux/oxnas/base-files')
-rwxr-xr-xtarget/linux/oxnas/base-files/etc/board.d/01_leds3
-rw-r--r--target/linux/oxnas/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/oxnas/base-files/lib/oxnas.sh3
3 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/oxnas/base-files/etc/board.d/01_leds b/target/linux/oxnas/base-files/etc/board.d/01_leds
index af565d7..b4b598c 100755
--- a/target/linux/oxnas/base-files/etc/board.d/01_leds
+++ b/target/linux/oxnas/base-files/etc/board.d/01_leds
@@ -7,6 +7,9 @@ board=$(oxnas_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"
diff --git a/target/linux/oxnas/base-files/etc/diag.sh b/target/linux/oxnas/base-files/etc/diag.sh
index 5aec796..51771f3 100644
--- a/target/linux/oxnas/base-files/etc/diag.sh
+++ b/target/linux/oxnas/base-files/etc/diag.sh
@@ -6,6 +6,9 @@
get_status_led() {
case $(oxnas_board_name) in
+ akitio)
+ status_led="akitio:red:status"
+ ;;
stg212)
status_led="zyxel:blue:status"
;;
diff --git a/target/linux/oxnas/base-files/lib/oxnas.sh b/target/linux/oxnas/base-files/lib/oxnas.sh
index 8ae5fbb..991f927 100755
--- a/target/linux/oxnas/base-files/lib/oxnas.sh
+++ b/target/linux/oxnas/base-files/lib/oxnas.sh
@@ -13,6 +13,9 @@ oxnas_board_detect() {
machine=$(cat /proc/device-tree/model)
case "$machine" in
+ *"Akitio MyCloud mini"*)
+ name="akitio"
+ ;;
*"MitraStar Technology Corp. STG-212"*)
name="stg212"
;;