diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-06-16 15:07:35 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-06-16 15:14:07 +0000 |
commit | 9e38486094b25e9577a6076530b4b293a3efb020 (patch) | |
tree | 9a9a9f427b577ac0c9b40a17ef2e46abcd5e8984 /main/busybox-initscripts/default.script | |
parent | 4daf0c5154069e1ddca470d41106dffc705ed2e0 (diff) | |
download | aports-9e38486094b25e9577a6076530b4b293a3efb020.tar.bz2 aports-9e38486094b25e9577a6076530b4b293a3efb020.tar.xz |
main/busybox-initscripts: support for disable gateway and dns in udhcpcd
ref #5672
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 |