bootdisk/trunk/batch-installer/installer-prep

hawk cvs at pld-linux.org
Sat Nov 26 16:47:50 CET 2005


Author: hawk
Date: Sat Nov 26 16:47:45 2005
New Revision: 6570

Modified:
   bootdisk/trunk/batch-installer/installer-prep
Log:
- fixed problem with dhcpcd not being killed when PID >9999


Modified: bootdisk/trunk/batch-installer/installer-prep
==============================================================================
--- bootdisk/trunk/batch-installer/installer-prep	(original)
+++ bootdisk/trunk/batch-installer/installer-prep	Sat Nov 26 16:47:45 2005
@@ -319,7 +319,7 @@
       # af_packet is needed for dhcpcd
       load_module af_packet
       # kill old instance of dhcpcd
-      kill `ps|grep dhcpcd|sed -e 's/  / /g' |cut -d' ' -f2` 2>/dev/null || :
+      kill `ps|grep dhcpcd|awk '{print $1}'` 2>/dev/null || :
       rm /var/run/dhcp*pid 2>/dev/null || :
       log info "waiting for dhcpcd to die (3 seconds)"
       sleep 3



More information about the pld-cvs-commit mailing list