55 lines
1.8 KiB
Diff
55 lines
1.8 KiB
Diff
|
|
Index: udhcp-0.9.8/samples/sample.bound
|
||
|
|
===================================================================
|
||
|
|
--- udhcp-0.9.8.orig/samples/sample.bound
|
||
|
|
+++ udhcp-0.9.8/samples/sample.bound
|
||
|
|
@@ -6,7 +6,7 @@ RESOLV_CONF="/etc/resolv.conf"
|
||
|
|
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
|
||
|
|
[ -n "$subnet" ] && NETMASK="netmask $subnet"
|
||
|
|
|
||
|
|
-/sbin/ifconfig $interface $ip $BROADCAST $NETMASK
|
||
|
|
+/usr/bin/ifconfig $interface $ip $BROADCAST $NETMASK
|
||
|
|
|
||
|
|
if [ -n "$router" ]
|
||
|
|
then
|
||
|
|
Index: udhcp-0.9.8/samples/sample.deconfig
|
||
|
|
===================================================================
|
||
|
|
--- udhcp-0.9.8.orig/samples/sample.deconfig
|
||
|
|
+++ udhcp-0.9.8/samples/sample.deconfig
|
||
|
|
@@ -1,4 +1,4 @@
|
||
|
|
#!/bin/sh
|
||
|
|
# Sample udhcpc deconfig script
|
||
|
|
|
||
|
|
-/sbin/ifconfig $interface 0.0.0.0
|
||
|
|
+/usr/bin/ifconfig $interface 0.0.0.0
|
||
|
|
Index: udhcp-0.9.8/samples/sample.renew
|
||
|
|
===================================================================
|
||
|
|
--- udhcp-0.9.8.orig/samples/sample.renew
|
||
|
|
+++ udhcp-0.9.8/samples/sample.renew
|
||
|
|
@@ -6,7 +6,7 @@ RESOLV_CONF="/etc/udhcpc/resolv.conf"
|
||
|
|
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
|
||
|
|
[ -n "$subnet" ] && NETMASK="netmask $subnet"
|
||
|
|
|
||
|
|
-/sbin/ifconfig $interface $ip $BROADCAST $NETMASK
|
||
|
|
+/usr/bin/ifconfig $interface $ip $BROADCAST $NETMASK
|
||
|
|
|
||
|
|
if [ -n "$router" ]
|
||
|
|
then
|
||
|
|
Index: udhcp-0.9.8/samples/simple.script
|
||
|
|
===================================================================
|
||
|
|
--- udhcp-0.9.8.orig/samples/simple.script
|
||
|
|
+++ udhcp-0.9.8/samples/simple.script
|
||
|
|
@@ -10,11 +10,11 @@ RESOLV_CONF="/etc/resolv.conf"
|
||
|
|
|
||
|
|
case "$1" in
|
||
|
|
deconfig)
|
||
|
|
- /sbin/ifconfig $interface 0.0.0.0
|
||
|
|
+ /usr/bin/ifconfig $interface 0.0.0.0
|
||
|
|
;;
|
||
|
|
|
||
|
|
renew|bound)
|
||
|
|
- /sbin/ifconfig $interface $ip $BROADCAST $NETMASK
|
||
|
|
+ /usr/bin/ifconfig $interface $ip $BROADCAST $NETMASK
|
||
|
|
|
||
|
|
if [ -n "$router" ] ; then
|
||
|
|
echo "deleting routers"
|