From aee3a65e2aa748e6cc78a08d9bbb14003fb86f93 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 15 Feb 2015 18:20:41 +0100 Subject: [PATCH] simple.script/udhcpc: Do not remove someone's else default route A lease bound/renewal could lead to the removal of a default route set by pppd. Apply the same "dev $interface" filter that would be used when using the "route" command. Fixes: SYS#1163 --- recipes-core/busybox/files/sysmocom-idu/simple.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-core/busybox/files/sysmocom-idu/simple.script b/recipes-core/busybox/files/sysmocom-idu/simple.script index 3e304b9..cb9d3d4 100644 --- a/recipes-core/busybox/files/sysmocom-idu/simple.script +++ b/recipes-core/busybox/files/sysmocom-idu/simple.script @@ -44,7 +44,7 @@ case "$1" in if [ -n "$router" ] ; then if ! root_is_nfs ; then if [ $have_bin_ip -eq 1 ]; then - while ip route del default 2>/dev/null ; do + while ip route del default dev $interface 2>/dev/null ; do : done else