aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/default.script
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-06-16 15:07:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-06-16 15:14:07 +0000
commit9e38486094b25e9577a6076530b4b293a3efb020 (patch)
tree9a9a9f427b577ac0c9b40a17ef2e46abcd5e8984 /main/busybox-initscripts/default.script
parent4daf0c5154069e1ddca470d41106dffc705ed2e0 (diff)
downloadaports-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.script6
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