diff options
author | Jonathan Bauer | 2019-08-07 13:52:31 +0200 |
---|---|---|
committer | Jonathan Bauer | 2019-08-07 13:52:31 +0200 |
commit | 07a35429939e1f9468fa7a28853e90da7877a794 (patch) | |
tree | abdc5f58ec94298f18ce69e587178f2b170325af | |
parent | [dhcpc-busybox] remove commented code (diff) | |
download | mltk-07a35429939e1f9468fa7a28853e90da7877a794.tar.gz mltk-07a35429939e1f9468fa7a28853e90da7877a794.tar.xz mltk-07a35429939e1f9468fa7a28853e90da7877a794.zip |
[dhcpc-busybox] TIL: ip route replace
-rwxr-xr-x | core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx | 2 |
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 |