rpms/dhcp/devel dhcp-3.0.2-dhclient-script-fix-init-state-1.patch, NONE, 1.1

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Apr 27 22:50:48 UTC 2005


Author: jvdias

Update of /cvs/dist/rpms/dhcp/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv19926

Added Files:
	dhcp-3.0.2-dhclient-script-fix-init-state-1.patch 
Log Message:
fix dhclient-script spew in init state 1

dhcp-3.0.2-dhclient-script-fix-init-state-1.patch:
 linux |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

--- NEW FILE dhcp-3.0.2-dhclient-script-fix-init-state-1.patch ---
--- dhcp-3.0.2/client/scripts/linux.fix-init-state-1	2005-04-25 12:38:08.000000000 -0400
+++ dhcp-3.0.2/client/scripts/linux	2005-04-27 18:34:57.226462000 -0400
@@ -280,7 +280,10 @@
 	    fi
 	    level=`/sbin/runlevel`
 	    level=${level##*\ }
-	    if ! pkill -HUP ypbind && [ $contents -gt 0 ] && chkconfig --level=$level ypbind; then
+	    if [ "$level" = "unknown" ]; then
+		level=1;
+	    fi
+	    if [[ "$level" = [0-6] ]] && ! pkill -HUP ypbind && [ $contents -gt 0 ] && chkconfig --level=$level ypbind; then
 		service ypbind start >/dev/null 2>&1;
 	    fi
 	elif [ -n "$new_nis_servers" ]; then
@@ -293,7 +296,10 @@
 	    done
 	    level=`/sbin/runlevel`
 	    level=${level##*\ }
-	    if ! pkill -HUP ypbind && [ $contents -gt 0 ] && chkconfig --level=$level ypbind; then
+	    if [ "$level" = "unknown" ]; then
+		level=1;
+	    fi
+	    if [[ "$level" = [0-6] ]] && ! pkill -HUP ypbind && [ $contents -gt 0 ] && chkconfig --level=$level ypbind; then
 		service ypbind start >/dev/null 2>&1;
 	    fi
 	fi
@@ -355,7 +361,7 @@
     # Bring down alias interface. Its routes will disappear too.
 	    ifconfig $interface:0- inet 0
 	fi
-	if [ x$keep_old_ip == xyes ]; then
+	if [ x$keep_old_ip = xyes ]; then
 	    ifconfig $interface up
 	elif [ $relmajor -lt 2 ] || ( [ $relmajor -eq 2 ] && [ $relminor -eq 0 ] )   then
 	    ifconfig $interface inet 0.0.0.0 netmask 0.0.0.0 \




More information about the fedora-cvs-commits mailing list