]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
40network/dhclient-script: be more verbose
authorHarald Hoyer <harald@redhat.com>
Wed, 19 May 2010 07:33:20 +0000 (09:33 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 19 May 2010 07:33:20 +0000 (09:33 +0200)
modules.d/40network/dhclient-script

index ac7d5e1ca8a4a2442a351a7d34066c8400743bc9..3efbc2d328425b8187afa7eee15000bdb2f5242c 100755 (executable)
@@ -60,10 +60,12 @@ netif=$interface
 
 case $reason in
     PREINIT)
+       echo "dhcp: PREINIT $netif up"
        ip link set $netif up
        wait_for_if_up $netif
        ;;
     BOUND)
+       echo "dhcp: BOND setting $netif"
        if ! arping -q -D -c 2 -I $netif $new_ip_address ; then
            warn "Duplicate address detected for $new_ip_address while doing dhcp. retrying"
            exit 1
@@ -76,7 +78,7 @@ case $reason in
        echo online > /sys/class/net/$netif/uevent
        /sbin/initqueue --onetime --name netroot-$netif  /sbin/netroot $netif 
        ;;
-    *) ;;
+    *) echo "dhcp: $reason";;
 esac
 
 exit 0