From 07a35429939e1f9468fa7a28853e90da7877a794 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 7 Aug 2019 13:52:31 +0200 Subject: [dhcpc-busybox] TIL: ip route replace --- core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx b/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx index f0722243..955b8975 100755 --- a/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx +++ b/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx @@ -80,7 +80,7 @@ case "$1" in ip addr add "$ip/$(ipcalc -s -p "$ip" "$subnet" | sed s/.*=//)" dev "$interface" # Set default route, if given if [ -n "$router" ]; then - ip route add default via "$router" + ip route replace default via "$router" fi # get domain, hostname and thus fqdn from DNS -- cgit v1.2.3-55-g7522