jeremycollake / x-wrt

Automatically exported from code.google.com/p/x-wrt
3 stars 0 forks source link

/etc/init.d/S90pptp stop deletes default route #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
/etc/init.d/S90pptp stop deletes the default route on routers using pppoe
as the internet connection 

Ran -hard- into this problem ;)

I was messing around with the pptp page, turning on the pptpd (deamon).
This sets pptp_srv to "1" in nvram.

But pptp_cli was still unset after a clean install, so that got set to "0".
Which caused /etc/init.d/S90pptp to be called from apply.sh: reload_pptp() {

    grep '_cli' config-pptp >&- 2>&- && [ -e /etc/init.d/S??pptp ] && {

        echo_restarting_service "@TR<<apply_pptp#pptp>>"
/etc/init.d/S??pptp stop >&- 2>&- /etc/init.d/S??pptp start >&- 2>&-
echo_action_done

    }

I guess the root problem here is that '/etc/init.d/S90pptp stop' kills
a/any running pppd, which includes the one which is used for the pppoe/pptp
connection (note that a single wan pptp connection may be set up via nvram
variables 'pptp_ifname' etc.).

In my case it dunked the active wan pptp connection, which was kinda funny
since I was connected from the outside from work :D

I think it'd be good to have a look at this and see if it can be fixed ;)

It's a bit tricky, with two possible ways to set up pptp stuff, and the
pppoe thing too, it confuses me :)

5ct :)

Cheers, Jeroen

Original issue reported on code.google.com by kemen04@gmail.com on 27 Jun 2008 at 1:23

GoogleCodeExporter commented 9 years ago

Original comment by kemen04@gmail.com on 28 Oct 2008 at 10:28