Browse Source

start getty/login when shell requested

Waldemar Brodkorb 10 years ago
parent
commit
a2ba45bfcc
2 changed files with 6 additions and 1 deletions
  1. 1 1
      package/adk-test-tools/Makefile
  2. 5 0
      package/adk-test-tools/files/test.init

+ 1 - 1
package/adk-test-tools/Makefile

@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 
 PKG_NAME:=		adk-test-tools
 PKG_NAME:=		adk-test-tools
 PKG_VERSION:=		0.1
 PKG_VERSION:=		0.1
-PKG_RELEASE:=		3
+PKG_RELEASE:=		4
 PKG_DESCR:=		helper tools and scripts for adk-test-framework
 PKG_DESCR:=		helper tools and scripts for adk-test-framework
 PKG_SECTION:=		misc
 PKG_SECTION:=		misc
 PKG_URL:=		http://openadk.org/
 PKG_URL:=		http://openadk.org/

+ 5 - 0
package/adk-test-tools/files/test.init

@@ -3,6 +3,11 @@
 #INIT 90
 #INIT 90
 [[ $1 = autostart ]] || exit 0
 [[ $1 = autostart ]] || exit 0
 echo "Starting test script ..."
 echo "Starting test script ..."
+grep shell /proc/cmdline > /dev/null 2&>1
+if [ $? -eq 0 ];then
+	echo "Use user root and password linux123 to login. And quit to finish."
+	exit 0
+fi
 if [ -x /run.sh ];then
 if [ -x /run.sh ];then
 	/run.sh
 	/run.sh
 	quit
 	quit