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 | |
parent | 5d553bc5580455cfb89705caf5d3a6ab327880bc (diff) | |
download | busybox-w32-1b367cbeda9447d771b09831c1e9c83cadbee55e.tar.gz busybox-w32-1b367cbeda9447d771b09831c1e9c83cadbee55e.tar.bz2 busybox-w32-1b367cbeda9447d771b09831c1e9c83cadbee55e.zip |
examples: remove /sbin/ prefixes, system should be configured with $PATH to find utilities
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | examples/inetd.conf | 2 | ||||
-rwxr-xr-x | examples/udhcp/sample.bound | 8 | ||||
-rwxr-xr-x | examples/udhcp/sample.deconfig | 2 | ||||
-rwxr-xr-x | examples/udhcp/sample.renew | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/examples/inetd.conf b/examples/inetd.conf index ca7e3d8e1..78b10e3ac 100644 --- a/examples/inetd.conf +++ b/examples/inetd.conf | |||
@@ -31,7 +31,7 @@ time dgram udp wait root internal | |||
31 | #ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd | 31 | #ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd |
32 | #telnet stream tcp nowait root /sbin/telnetd /sbin/telnetd | 32 | #telnet stream tcp nowait root /sbin/telnetd /sbin/telnetd |
33 | #nntp stream tcp nowait root tcpd in.nntpd | 33 | #nntp stream tcp nowait root tcpd in.nntpd |
34 | #smtp stream tcp nowait root tcpd sendmail -v | 34 | #smtp stream tcp nowait root tcpd sendmail -v |
35 | # | 35 | # |
36 | # Shell, login, exec and talk are BSD protocols. | 36 | # Shell, login, exec and talk are BSD protocols. |
37 | # | 37 | # |
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" | |||
6 | [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" | 6 | [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" |
7 | [ -n "$subnet" ] && NETMASK="netmask $subnet" | 7 | [ -n "$subnet" ] && NETMASK="netmask $subnet" |
8 | 8 | ||
9 | /sbin/ifconfig $interface $ip $BROADCAST $NETMASK | 9 | ifconfig $interface $ip $BROADCAST $NETMASK |
10 | 10 | ||
11 | if [ -n "$router" ] | 11 | if [ -n "$router" ] |
12 | then | 12 | then |
13 | echo "deleting routers" | 13 | echo "deleting routers" |
14 | while /sbin/route del default gw 0.0.0.0 dev $interface | 14 | while route del default gw 0.0.0.0 dev $interface |
15 | do : | 15 | do : |
16 | done | 16 | done |
17 | 17 | ||
@@ -23,9 +23,9 @@ then | |||
23 | # /32 instructs kernel to always use routing for all outgoing packets | 23 | # /32 instructs kernel to always use routing for all outgoing packets |
24 | # (they can never be sent to local subnet - there is no local subnet for /32). | 24 | # (they can never be sent to local subnet - there is no local subnet for /32). |
25 | # Used in datacenters, avoids the need for private ip-addresses between two hops. | 25 | # Used in datacenters, avoids the need for private ip-addresses between two hops. |
26 | /sbin/ip route add $i dev $interface | 26 | ip route add $i dev $interface |
27 | fi | 27 | fi |
28 | /sbin/route add default gw $i dev $interface metric $((metric++)) | 28 | route add default gw $i dev $interface metric $((metric++)) |
29 | done | 29 | done |
30 | fi | 30 | fi |
31 | 31 | ||
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 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # Sample udhcpc deconfig script | 2 | # Sample udhcpc deconfig script |
3 | 3 | ||
4 | /sbin/ifconfig $interface 0.0.0.0 | 4 | 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" | |||
6 | [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" | 6 | [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" |
7 | [ -n "$subnet" ] && NETMASK="netmask $subnet" | 7 | [ -n "$subnet" ] && NETMASK="netmask $subnet" |
8 | 8 | ||
9 | /sbin/ifconfig $interface $ip $BROADCAST $NETMASK | 9 | ifconfig $interface $ip $BROADCAST $NETMASK |
10 | 10 | ||
11 | if [ -n "$router" ] | 11 | if [ -n "$router" ] |
12 | then | 12 | then |
13 | echo "deleting routers" | 13 | echo "deleting routers" |
14 | while /sbin/route del default gw 0.0.0.0 dev $interface | 14 | while route del default gw 0.0.0.0 dev $interface |
15 | do : | 15 | do : |
16 | done | 16 | done |
17 | 17 | ||
@@ -23,9 +23,9 @@ then | |||
23 | # /32 instructs kernel to always use routing for all outgoing packets | 23 | # /32 instructs kernel to always use routing for all outgoing packets |
24 | # (they can never be sent to local subnet - there is no local subnet for /32). | 24 | # (they can never be sent to local subnet - there is no local subnet for /32). |
25 | # Used in datacenters, avoids the need for private ip-addresses between two hops. | 25 | # Used in datacenters, avoids the need for private ip-addresses between two hops. |
26 | /sbin/ip route add $i dev $interface | 26 | ip route add $i dev $interface |
27 | fi | 27 | fi |
28 | /sbin/route add default gw $i dev $interface metric $((metric++)) | 28 | route add default gw $i dev $interface metric $((metric++)) |
29 | done | 29 | done |
30 | fi | 30 | fi |
31 | 31 | ||