- ifconfig_path.patch - adjust absolute path to ifconfig OBS-URL: https://build.opensuse.org/request/show/567981 OBS-URL: https://build.opensuse.org/package/show/network/udhcp?expand=0&rev=11
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"
|