livecd: livecd - fix checking those binaries

havner havner at pld-linux.org
Wed Jul 12 11:04:04 CEST 2006


Author: havner                       Date: Wed Jul 12 09:04:04 2006 GMT
Module: livecd                        Tag: HEAD
---- Log message:
- fix checking those binaries

---- Files affected:
livecd:
   livecd (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: livecd/livecd
diff -u livecd/livecd:1.10 livecd/livecd:1.11
--- livecd/livecd:1.10	Wed Jul 12 10:42:53 2006
+++ livecd/livecd	Wed Jul 12 11:03:59 2006
@@ -21,7 +21,7 @@
 	start|restart|reload|force-reload)
 	CHARS="LiveCD: "
 
-	if [ "$CONFIG_DHCP" = "yes" -a "$CONFIG_NET" = "yes" -a -x `which dhcpcd` ] && ! getparam nodhcp && ! getparam nonet; then
+	if [ "$CONFIG_DHCP" = "yes" -a "$CONFIG_NET" = "yes" -a -x "`which dhcpcd`" ] && ! getparam nodhcp && ! getparam nonet; then
 		for I in `awk '/^[ \t]*alias[ \t]+eth/ {print $2}' /etc/modprobe.conf`; do
 			modprobe $I > /dev/null 2>&1
 		done
@@ -36,7 +36,7 @@
 		done
 	fi
 
-	if [ "$CONFIG_MIXER" = "yes" -a "$CONFIG_SOUND" = "yes" -a -x `which aumix` ] && ! getparam nomixer && ! getparam nosound; then
+	if [ "$CONFIG_MIXER" = "yes" -a "$CONFIG_SOUND" = "yes" -a -x "`which aumix`" ] && ! getparam nomixer && ! getparam nosound; then
 		show "Loading mixer settings for detected audio devices"
 		busy
 		COUNT=0
@@ -55,7 +55,7 @@
 	;;
 	stop)
 	CHARS="LiveCD: "
-	if [ "`cat /proc/mounts | grep \/home\/users`" != "" -a -x `which lsof` ]; then
+	if [ "`cat /proc/mounts | grep \/home\/users`" != "" -a -x "`which lsof`" ]; then
 		for I in `lsof +D /home/users | awk '!/[C]OMMAND/ {print $2}' | sort | uniq`; do
 			kill -15 $I > /dev/null 2>&1
 			kill -9 $I > /dev/null 2>&1
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/livecd/livecd?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list