diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-13 21:35:26 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-13 21:35:26 +0100 |
commit | 1b367cbeda9447d771b09831c1e9c83cadbee55e (patch) | |
tree | fcd9ae1e31a53dd24b522c2735c48747a4a3e292 /examples/udhcp | |
parent | 5d553bc5580455cfb89705caf5d3a6ab327880bc (diff) | |
download | busybox-1b367cbeda9447d771b09831c1e9c83cadbee55e.tar.gz |
examples: remove /sbin/ prefixes, system should be configured with $PATH to find utilities
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples/udhcp')
-rwxr-xr-x | examples/udhcp/sample.bound | 8 | ||||
-rwxr-xr-x | examples/udhcp/sample.deconfig | 2 | ||||
-rwxr-xr-x | examples/udhcp/sample.renew | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/examples/udhcp/sample.bound b/examples/udhcp/sample.bound index efd98cf15..15a7775e9 100755 --- a/examples/udhcp/sample.bound +++ b/examples/udhcp/sample.bound @@ -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 diff --git a/examples/udhcp/sample.deconfig b/examples/udhcp/sample.deconfig index b221bcf12..a893de83f 100755 --- a/examples/udhcp/sample.deconfig +++ b/examples/udhcp/sample.deconfig @@ -1,4 +1,4 @@ #!/bin/sh # Sample udhcpc deconfig script -/sbin/ifconfig $interface 0.0.0.0 +ifconfig $interface 0.0.0.0 diff --git a/examples/udhcp/sample.renew b/examples/udhcp/sample.renew index efd98cf15..15a7775e9 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 |