Changeset 21361


Ignore:
Timestamp:
2010-05-05T03:48:45+02:00 (8 years ago)
Author:
jow
Message:

[package] ppp: pass "nodefaultroute" if defaultroute is 0, don't unconditionally truncate resolv.conf, thanks cshore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/ppp/files/ppp.sh

    r21283 r21361  
    6060        config_get_bool defaultroute "$cfg" defaultroute 1 
    6161        [ "$defaultroute" -eq 1 ] && \ 
    62                 defaultroute="defaultroute replacedefaultroute" || defaultroute="" 
     62                defaultroute="defaultroute replacedefaultroute" || defaultroute="nodefaultroute" 
    6363 
    6464        local interval="${keepalive##*[, ]}" 
     
    7878        config_get_bool peerdns "$cfg" peerdns $peer_default 
    7979 
    80         echo -n "" > /tmp/resolv.conf.auto 
     80        if [ "$peerdns" -eq 1 ] || [ ! -e /tmp/resolv.conf.auto ]; then 
     81                echo -n "" > /tmp/resolv.conf.auto 
     82        fi 
    8183 
    8284        [ "$peerdns" -eq 1 ] && { 
Note: See TracChangeset for help on using the changeset viewer.