summaryrefslogtreecommitdiff
path: root/package/adktest/src/quit
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-05 23:34:50 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-06 00:01:03 +0100
commit0bb9a1bd2ab1f748427650d49b8f4e93b6d211da (patch)
treed69b6cb766552473d6437de81802d331135dfe48 /package/adktest/src/quit
parent421264b3d5dfcb59056c54e13aa56c53e381a042 (diff)
adktest: use poweroff for metag, too
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'package/adktest/src/quit')
-rwxr-xr-xpackage/adktest/src/quit13
1 files changed, 8 insertions, 5 deletions
diff --git a/package/adktest/src/quit b/package/adktest/src/quit
index 6e6a91623..b664b9af6 100755
--- a/package/adktest/src/quit
+++ b/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