Changeset 674


Ignore:
Timestamp:
2005-04-18T21:34:55+02:00 (13 years ago)
Author:
nbd
Message:

fix ppp reconnect (add persist option)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/ppp/ipkg/ppp-pppoe-plugin/etc/init.d/S50pppoe

    r519 r674  
    2020                IDLETIME=${IDLETIME:+idle $IDLETIME} 
    2121                MTU=$(nvram get ppp_mtu) 
     22                MTU=${MTU:+ mtu $MTU mru $MTU} 
    2223 
    2324                ifconfig $IFNAME up 
    24                 echo -e "plugin rp-pppoe.so\nconnect /bin/true\nusepeerdns\ndefaultroute\nuser \"$USERNAME\"\npassword \"$PASSWORD\"\nmtu $MTU\n$IDLETIME\n$REDIAL" > /tmp/.pppoe-data 
     25                echo -e "plugin rp-pppoe.so\npersist\nconnect /bin/true\nusepeerdns\ndefaultroute\nuser \"$USERNAME\"\npassword \"$PASSWORD\"\n$MTU\n$IDLETIME\n$REDIAL" > /tmp/.pppoe-data 
    2526                /usr/sbin/pppd nodetach file /tmp/.pppoe-data $IFNAME 
    2627        done 
Note: See TracChangeset for help on using the changeset viewer.