I run the above script whenever I need to connect via PPP. I never run pppd alone outside of this script.
That gives me a basically 100% correct behavior at all times. If I stop PPP, or pull out my broadband modem card, pppd stops and NetworkManager starts and is ready to serve me. When I am on PPP, NetworkManager is not bothering me with incorrect behavior.
I have been very happy in the last few days and think that it should work for just about anyone.
I have a solution that I think is as near perfect as it gets. It is very simple.
The problem: I need NetworkManager for connecting my laptop to wifi and ethernet. However, it messes me up when I am on PPP.
The solution: kill Network Manager before running pppd and revive it after, e.g.:
#!/bin/sh
killall NetworkManager
pppd my_isp
NetworkManager
I run the above script whenever I need to connect via PPP. I never run pppd alone outside of this script.
That gives me a basically 100% correct behavior at all times. If I stop PPP, or pull out my broadband modem card, pppd stops and NetworkManager starts and is ready to serve me. When I am on PPP, NetworkManager is not bothering me with incorrect behavior.
I have been very happy in the last few days and think that it should work for just about anyone.
i