Browse Source

adktest: use poweroff for metag, too

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Waldemar Brodkorb 9 years ago
parent
commit
0bb9a1bd2a
1 changed files with 8 additions and 5 deletions
  1. 8 5
      package/adktest/src/quit

+ 8 - 5
package/adktest/src/quit

@@ -1,7 +1,10 @@
 #!/bin/sh
 arch=$(uname -m)
-if [ "$arch" = "arc" ]; then
-  poweroff
-else
-  /usr/bin/qmp |nc 10.0.2.2 4444
-fi
+case $arch in
+  arc|metag)
+    poweroff
+    ;;
+  *)
+    /usr/bin/qmp |nc 10.0.2.2 4444
+    ;;
+esac