SOURCES: motion.init - better

glen glen at pld-linux.org
Sun Dec 10 13:39:49 CET 2006


Author: glen                         Date: Sun Dec 10 12:39:49 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- better

---- Files affected:
SOURCES:
   motion.init (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SOURCES/motion.init
diff -u SOURCES/motion.init:1.6 SOURCES/motion.init:1.7
--- SOURCES/motion.init:1.6	Sun Dec 10 13:38:34 2006
+++ SOURCES/motion.init	Sun Dec 10 13:39:44 2006
@@ -24,7 +24,7 @@
 		daemon --user motion ${motion} ${STARTUP_OPTIONS}
 		RETVAL=$?
 		if [ $RETVAL -eq 0 ] ; then
-			echo `ps axf | awk "!/awk/ && /$motion/{print \$1; exit}"` > ${PIDFILE}
+			echo `ps axf | awk -vprog="$motion" '!/awk/ && $0 ~ prog {print $1; exit}'` > ${PIDFILE}
 			touch /var/lock/subsys/motion
 		fi
 	else
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/motion.init?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list