From 522e0d787a9e6290341c022e9a879b74ec9ecd58 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 12 Dec 2020 10:09:12 -0500 Subject: /usr/share/udhcpc/default.script: Fix gateway --- (limited to 'src.usr/share/udhcpc') 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 -- cgit v0.9.1