diff options
Diffstat (limited to 'main/busybox-initscripts/default.script')
-rw-r--r-- | main/busybox-initscripts/default.script | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/busybox-initscripts/default.script b/main/busybox-initscripts/default.script index fcfaa1745e..511c540bec 100644 --- a/main/busybox-initscripts/default.script +++ b/main/busybox-initscripts/default.script @@ -58,6 +58,9 @@ calc_metric() { routes() { [ -z "$router" ] && return + for i in $NO_GATEWAY; do + [ "$i" = "$interface" ] && return + done local gw= num= while ip route del default via dev $interface 2>/dev/null; do : @@ -77,6 +80,9 @@ resolvconf() { || [ -z "$RESOLV_CONF" ]; then return fi + for i in $NO_DNS; do + [ "$i" = "$interface" ] && return + done echo -n > "$RESOLV_CONF" [ -n "$domain" ] && echo "search $domain" >> "$RESOLV_CONF" for i in $dns; do |