Browse Source

better use -q for grep

Waldemar Brodkorb 9 years ago
parent
commit
897cacf467
2 changed files with 2 additions and 2 deletions
  1. 1 1
      package/adktest/Makefile
  2. 1 1
      package/adktest/files/adktest.init

+ 1 - 1
package/adktest/Makefile

@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
 
 PKG_NAME:=		adktest
 PKG_VERSION:=		0.1
-PKG_RELEASE:=		7
+PKG_RELEASE:=		8
 PKG_DESCR:=		helper tools and scripts for qemu testing
 PKG_DEPENDS:=		rdate
 PKG_SECTION:=		base/misc

+ 1 - 1
package/adktest/files/adktest.init

@@ -11,7 +11,7 @@ autostart)
 	exec sh $0 start
 	;;
 start)
-	grep shell /proc/cmdline > /dev/null 2&>1
+	grep -q shell /proc/cmdline
 	if [ $? -eq 0 ];then
 		exit 0
 	fi