summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-12-12 10:09:12 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-12-12 10:09:12 (EST)
commit522e0d787a9e6290341c022e9a879b74ec9ecd58 (patch)
treee702e5a38d3ee97c09352ba7c4afc1d3a999425c
parenta734f7b583b668894522c1ff470cbf06c81b5f1e (diff)
/usr/share/udhcpc/default.script: Fix gateway
-rw-r--r--changelog6
-rwxr-xr-xsrc.usr/share/udhcpc/default.script4
2 files changed, 8 insertions, 2 deletions
diff --git a/changelog b/changelog
index 8c5dbf3..61b8e08 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
+busybox (1.32.0-3) trunk
+
+ * A default gateway is no longer missing.
+
+ -- Patrick McDermott <patrick.mcdermott@libiquity.com> Sat, 12 Dec 2020 10:09:01 -0500
+
busybox (1.32.0-2) trunk
* The networking service init script is again included if ifup or
diff --git a/src.usr/share/udhcpc/default.script b/src.usr/share/udhcpc/default.script
index 2f65e45..bb27ec0 100755
--- a/src.usr/share/udhcpc/default.script
+++ b/src.usr/share/udhcpc/default.script
@@ -9,12 +9,12 @@ case "${1}" in
${broadcast+broadcast ${broadcast}} \
${netmask+netmask ${netmask}}
if [ "x${router+set}" = 'xset' ]; then
- while /sbin/route del default gw 0.0.0.0 \
+ while /sbin/ip route del default via 0.0.0.0 \
dev "${interface}" 2>/dev/null; do
:
done
for router in ${router}; do
- /sbin/route add default gw "${router}" \
+ /sbin/ip route add default via "${router}" \
dev "${interface}"
done
fi