summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/etc
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-01-10 21:16:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-01-10 21:16:46 +0000
commit2eccbe55a3ceb66c65ae51e74db6fbddb090769e (patch)
tree7a2c3ed8af53d91610ec2dd5bb285b25cde12a7b /openwrt/package/base-files/default/etc
parent5aae7cab2c90235ae23829059bec71592bb95731 (diff)
downloadmtk-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-net6
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
}