diff options
Diffstat (limited to 'packages/ifupdown/ifupdown-0.6.8/udhcpc.patch')
-rw-r--r-- | packages/ifupdown/ifupdown-0.6.8/udhcpc.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/ifupdown/ifupdown-0.6.8/udhcpc.patch b/packages/ifupdown/ifupdown-0.6.8/udhcpc.patch new file mode 100644 index 0000000000..5b662e7988 --- /dev/null +++ b/packages/ifupdown/ifupdown-0.6.8/udhcpc.patch @@ -0,0 +1,28 @@ +Index: ifupdown-0.6.8/inet.defn +=================================================================== +--- ifupdown-0.6.8.orig/inet.defn 2007-01-04 09:11:43.000000000 +0100 ++++ ifupdown-0.6.8/inet.defn 2007-01-04 09:12:51.000000000 +0100 +@@ -81,8 +81,7 @@ + elsif (execable("/sbin/dhclient")) + pump -i %iface% [[-h %hostname%]] [[-l %leasehours%]] \ + elsif (execable("/sbin/pump") && mylinuxver() >= mylinux(2,1,100)) +- udhcpc -n -p /var/run/udhcpc.%iface%.pid -i %iface% [[-H %hostname%]] \ +- [[-c %client%]] \ ++ udhcpc -b -p /var/run/udhcpc.%iface%.pid -i %iface% -H `cat /etc/hostname` \ + elsif (execable("/sbin/udhcpc") && mylinuxver() >= mylinux(2,2,0)) + dhcpcd [[-h %hostname%]] [[-i %vendor%]] [[-I %client%]] \ + [[-l %leasetime%]] %iface% \ +@@ -91,11 +90,11 @@ + down + dhclient3 -r -pf /var/run/dhclient.%iface%.pid -lf /var/lib/dhcp3/dhclient.%iface%.leases %iface% \ + if (execable("/sbin/dhclient3")) +- cat /var/run/dhclient.%iface%.pid | xargs -i kill -TERM {} \ ++ kill -TERM `cat /var/run/dhclient.%iface%.pid` \ + elsif (execable("/sbin/dhclient")) + pump -i %iface% -r \ + elsif (execable("/sbin/pump") && mylinuxver() >= mylinux(2,1,100)) +- cat /var/run/udhcpc.%iface%.pid | xargs -i kill -TERM {} \ ++ kill -TERM `cat /var/run/udhcpc.%iface%.pid` \ + elsif (execable("/sbin/udhcpc")) + dhcpcd -k %iface% \ + elsif (execable("/sbin/dhcpcd")) |