← Commit list

1b367cbed

Denys Vlasenko
Denys Vlasenko
2020-12-13
SUCCESS Duration: 151s

Subject

examples: remove /sbin/ prefixes, system should be configured with $PATH to find utilities

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

examples/inetd.conf+1 -1
@@ -31,7 +31,7 @@ time dgram udp wait root internal
#ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd
#telnet stream tcp nowait root /sbin/telnetd /sbin/telnetd
#nntp stream tcp nowait root tcpd in.nntpd
-#smtp stream tcp nowait root tcpd sendmail -v
+#smtp stream tcp nowait root tcpd sendmail -v
#
# Shell, login, exec and talk are BSD protocols.
#
examples/udhcp/sample.bound+4 -4
@@ -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
examples/udhcp/sample.deconfig+1 -1
@@ -1,4 +1,4 @@
#!/bin/sh
# Sample udhcpc deconfig script
-/sbin/ifconfig $interface 0.0.0.0
+ifconfig $interface 0.0.0.0
examples/udhcp/sample.renew+4 -4
@@ -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