Browse Source

Merge branch 'master' of git+ssh://openadk.org/git/openadk

Waldemar Brodkorb 8 years ago
parent
commit
47c3e6c1bc
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