Changeset 8569


Ignore:
Timestamp:
2007-09-01T14:57:15+02:00 (10 years ago)
Author:
nbd
Message:

allow the user to disable the defaultroute option for ppp

File:
1 edited

Legend:

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

    r8564 r8569  
    2727        config_get disconnect "$cfg" disconnect 
    2828        config_get pppd_options "$cfg" pppd_options 
     29        config_get_bool defaultroute "$cfg" defaultroute 1 
     30        [ "$defaultroute" -eq 1 ] && defaultroute="defaultroute replacedefaultroute" || defaultroute="" 
    2931 
    3032        interval="${keepalive##*[, ]}" 
     
    3739                ${demand:+precompiled-active-filter /etc/ppp/filter demand idle }${demand:-persist} \ 
    3840                usepeerdns \ 
    39                 defaultroute \ 
    40                 replacedefaultroute \ 
     41                $defaultroute \ 
    4142                ${username:+user "$username" password "$password"} \ 
    4243                unit "$unit" \ 
Note: See TracChangeset for help on using the changeset viewer.