summaryrefslogtreecommitdiff
path: root/packages/ifupdown/ifupdown-0.6.8/udhcpc.patch
blob: 5b662e79882659858d80b0ded6d5b9e6c7c983ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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"))