Author: bdubbs
Date: Wed Aug 27 11:01:33 2014
New Revision: 14099

Log:
Actually commit the bootscript change

Modified:
   trunk/bootscripts/ChangeLog
   trunk/bootscripts/blfs/services/dhclient

Modified: trunk/bootscripts/ChangeLog
==============================================================================
--- trunk/bootscripts/ChangeLog Wed Aug 27 10:55:01 2014        (r14098)
+++ trunk/bootscripts/ChangeLog Wed Aug 27 11:01:33 2014        (r14099)
@@ -1,3 +1,6 @@
+2014-08-27 Bruce Dubbs <bdu...@linuxfromscratch.org>
+   * Don't try to delete non-existant PID file in dhclient
+
 2014-08-08 Ken Moffat <k...@linuxfromscratch.org>
    * Fix spacing in dhclient messages
 

Modified: trunk/bootscripts/blfs/services/dhclient
==============================================================================
--- trunk/bootscripts/blfs/services/dhclient    Wed Aug 27 10:55:01 2014        
(r14098)
+++ trunk/bootscripts/blfs/services/dhclient    Wed Aug 27 11:01:33 2014        
(r14099)
@@ -100,9 +100,11 @@
 
       /sbin/dhclient -r -lf ${LFILE} -pf ${PIDFILE} $DHCP_STOP $1
 
-      ps $(cat ${PIDFILE}) | grep dhclient >/dev/null
-      if [ "$?" != "0" ]; then
-         rm -f ${PIDFILE}
+      if [ -e ${PIDFILE} ]; then 
+         ps $(cat ${PIDFILE}) | grep dhclient >/dev/null
+         if [ "$?" != "0" ]; then
+            rm -f ${PIDFILE}
+         fi
       fi
 
       evaluate_retval
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to