Commit 5fd04a3c authored by Natanael Copa's avatar Natanael Copa

Revert "main/busybox-initscripts: fix default.script DHCP behaviour"

Logic was broken.

This reverts commit 703e83ea.
parent 9010ed09
......@@ -83,27 +83,11 @@ resolvconf() {
for i in $NO_DNS; do
[ "$i" = "$interface" ] && return
done
# If we are given a domain/dns pair, we use them to replace resolv.conf ...
if [ -n "$domain" ] && [ -n "$dns" ]; then
echo "search $domain" > "$RESOLV_CONF"
for i in $dns; do
echo "nameserver $i" >> "$RESOLV_CONF"
done
return
fi
# ... but those who don't like search domains might only give us dns.
if [ -n "$dns" ]; then
echo -n > "$RESOLV_CONF"
for i in $dns; do
echo "nameserver $i" >> "$RESOLV_CONF"
done
return
fi
echo -n > "$RESOLV_CONF"
[ -n "$domain" ] && echo "search $domain" >> "$RESOLV_CONF"
for i in $dns; do
echo "nameserver $i" >> "$RESOLV_CONF"
done
}
bound() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment