summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2019-08-07 13:52:31 +0200
committerJonathan Bauer2019-08-07 13:52:31 +0200
commit07a35429939e1f9468fa7a28853e90da7877a794 (patch)
treeabdc5f58ec94298f18ce69e587178f2b170325af
parent[dhcpc-busybox] remove commented code (diff)
downloadmltk-07a35429939e1f9468fa7a28853e90da7877a794.tar.gz
mltk-07a35429939e1f9468fa7a28853e90da7877a794.tar.xz
mltk-07a35429939e1f9468fa7a28853e90da7877a794.zip
[dhcpc-busybox] TIL: ip route replace
-rwxr-xr-xcore/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx2
1 files changed, 1 insertions, 1 deletions
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