Browse Source

poweroff on ARC simulator

Waldemar Brodkorb 10 years ago
parent
commit
884461f412
2 changed files with 7 additions and 2 deletions
  1. 1 1
      package/adktest/Makefile
  2. 6 1
      package/adktest/src/quit

+ 1 - 1
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/

+ 6 - 1
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