Changeset 2884


Ignore:
Timestamp:
2006-01-10T22:16:46+01:00 (12 years ago)
Author:
nbd
Message:

use /tmp/resolv.conf when using a static nameserver (#177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/base-files/default/etc/hotplug.d/net/10-net

    r2822 r2884  
    7070                        ${gateway:+$DEBUG route add default gw $gateway} 
    7171         
    72                         [ -f /etc/resolv.conf ] || { 
    73                                 debug "# --- creating /etc/resolv.conf ---" 
     72                        [ -f /tmp/resolv.conf ] || { 
     73                                debug "# --- creating /tmp/resolv.conf ---" 
    7474                                for dns in $(nvram get ${2}_dns); do 
    75                                         echo "nameserver $dns" >> /etc/resolv.conf 
     75                                        echo "nameserver $dns" >> /tmp/resolv.conf 
    7676                                done 
    7777                        } 
Note: See TracChangeset for help on using the changeset viewer.