ソースを参照

poweroff on ARC simulator

Waldemar Brodkorb 10 年 前
コミット
884461f412
2 ファイル変更7 行追加2 行削除
  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