summaryrefslogtreecommitdiff
path: root/packages/ifupdown/ifupdown-0.6.8/udhcpc.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-01-04 08:19:31 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-01-04 08:19:31 +0000
commit72b1c191434a2aa522adc2861abcfc585687853b (patch)
tree762c5f171967bd12d887d0c727c8822650949afe /packages/ifupdown/ifupdown-0.6.8/udhcpc.patch
parent842f7bcf3e851d855647fd63627653d1fcc09dae (diff)
ifupdown: updated to 0.6.8 (current Debian version)
Diffstat (limited to 'packages/ifupdown/ifupdown-0.6.8/udhcpc.patch')
-rw-r--r--packages/ifupdown/ifupdown-0.6.8/udhcpc.patch28
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"))