mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
don't recreate the resolv.conf file from the dhcp script if no dhcp server is supplied (reported by exobyte)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4903 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -38,12 +38,14 @@ case "$1" in
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n > $RESOLV_CONF
|
[ -n "$dns" ] && {
|
||||||
${domain:+echo search $domain} >> $RESOLV_CONF
|
echo -n > $RESOLV_CONF
|
||||||
for i in $dns ; do
|
${domain:+echo search $domain} >> $RESOLV_CONF
|
||||||
echo "adding dns $i"
|
for i in $dns ; do
|
||||||
echo "nameserver $i" >> $RESOLV_CONF
|
echo "adding dns $i"
|
||||||
done
|
echo "nameserver $i" >> $RESOLV_CONF
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
hotplug_event ifup
|
hotplug_event ifup
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user