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
This commit is contained in:
Holger Hans Peter Freyther 2015-02-15 18:20:41 +01:00
parent 9e6e792ec1
commit aee3a65e2a
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ case "$1" in
if [ -n "$router" ] ; then if [ -n "$router" ] ; then
if ! root_is_nfs ; then if ! root_is_nfs ; then
if [ $have_bin_ip -eq 1 ]; 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 done
else else