diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-11-02 06:20:54 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-11-02 06:21:15 +0100 |
commit | 884461f412e4dbbe0fa35a4c1c1fd1d8bd42e64c (patch) | |
tree | c89f0cc573c72da3ca0b17b46ec0845a9707fef6 | |
parent | a15c179ea909f14f89d958bf267954c64eba3aa7 (diff) |
poweroff on ARC simulator
-rw-r--r-- | package/adktest/Makefile | 2 | ||||
-rwxr-xr-x | package/adktest/src/quit | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/package/adktest/Makefile b/package/adktest/Makefile index e974d4275..b99ab913c 100644 --- a/package/adktest/Makefile +++ b/package/adktest/Makefile @@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk PKG_NAME:= adktest PKG_VERSION:= 0.1 -PKG_RELEASE:= 9 +PKG_RELEASE:= 10 PKG_DESCR:= helper tools and scripts for qemu testing PKG_SECTION:= base/misc PKG_URL:= http://openadk.org/ diff --git a/package/adktest/src/quit b/package/adktest/src/quit index 23080d5a2..6e6a91623 100755 --- a/package/adktest/src/quit +++ b/package/adktest/src/quit @@ -1,2 +1,7 @@ #!/bin/sh -/usr/bin/qmp |nc 10.0.2.2 4444 +arch=$(uname -m) +if [ "$arch" = "arc" ]; then + poweroff +else + /usr/bin/qmp |nc 10.0.2.2 4444 +fi |