diff options
Diffstat (limited to 'examples/udhcp/sample.renew')
-rwxr-xr-x | examples/udhcp/sample.renew | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/udhcp/sample.renew b/examples/udhcp/sample.renew index efd98cf..15a7775 100755 --- a/examples/udhcp/sample.renew +++ b/examples/udhcp/sample.renew @@ -6,12 +6,12 @@ RESOLV_CONF="/etc/udhcpc/resolv.conf" [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" [ -n "$subnet" ] && NETMASK="netmask $subnet" -/sbin/ifconfig $interface $ip $BROADCAST $NETMASK +ifconfig $interface $ip $BROADCAST $NETMASK if [ -n "$router" ] then echo "deleting routers" - while /sbin/route del default gw 0.0.0.0 dev $interface + while route del default gw 0.0.0.0 dev $interface do : done @@ -23,9 +23,9 @@ then # /32 instructs kernel to always use routing for all outgoing packets # (they can never be sent to local subnet - there is no local subnet for /32). # Used in datacenters, avoids the need for private ip-addresses between two hops. - /sbin/ip route add $i dev $interface + ip route add $i dev $interface fi - /sbin/route add default gw $i dev $interface metric $((metric++)) + route add default gw $i dev $interface metric $((metric++)) done fi |