diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-01-10 21:16:46 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-01-10 21:16:46 +0000 |
commit | 2eccbe55a3ceb66c65ae51e74db6fbddb090769e (patch) | |
tree | 7a2c3ed8af53d91610ec2dd5bb285b25cde12a7b /openwrt/package/base-files/default/etc | |
parent | 5aae7cab2c90235ae23829059bec71592bb95731 (diff) | |
download | mtk-20170518-2eccbe55a3ceb66c65ae51e74db6fbddb090769e.zip mtk-20170518-2eccbe55a3ceb66c65ae51e74db6fbddb090769e.tar.gz mtk-20170518-2eccbe55a3ceb66c65ae51e74db6fbddb090769e.tar.bz2 |
use /tmp/resolv.conf when using a static nameserver (#177)
SVN-Revision: 2884
Diffstat (limited to 'openwrt/package/base-files/default/etc')
-rw-r--r-- | openwrt/package/base-files/default/etc/hotplug.d/net/10-net | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openwrt/package/base-files/default/etc/hotplug.d/net/10-net b/openwrt/package/base-files/default/etc/hotplug.d/net/10-net index fb7b128..7c8cd67 100644 --- a/openwrt/package/base-files/default/etc/hotplug.d/net/10-net +++ b/openwrt/package/base-files/default/etc/hotplug.d/net/10-net @@ -69,10 +69,10 @@ do_ifup() { $DEBUG ifconfig $if $ip ${netmask:+netmask $netmask} broadcast + up ${gateway:+$DEBUG route add default gw $gateway} - [ -f /etc/resolv.conf ] || { - debug "# --- creating /etc/resolv.conf ---" + [ -f /tmp/resolv.conf ] || { + debug "# --- creating /tmp/resolv.conf ---" for dns in $(nvram get ${2}_dns); do - echo "nameserver $dns" >> /etc/resolv.conf + echo "nameserver $dns" >> /tmp/resolv.conf done } |