Patchwork udev: avoid udev stopping persistent pppd connections

login
register
mail settings
Submitter Steffen Sledz
Date June 30, 2011, 7:33 a.m.
Message ID <1309419211-20670-1-git-send-email-sledz@dresearch-fe.de>
Download mbox | patch
Permalink /patch/6727/
State Accepted
Headers show

Comments

Steffen Sledz - June 30, 2011, 7:33 a.m.
From: Mario Schuknecht <schuknecht@dresearch-fe.de>

When a pppd session is disconnected it triggers the udev to ifdown the
ppp link which kills pppd and inhibits a reconnection.

Now avoid udev stopping ppp connections.

See also:
 https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/396804
 https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/78043
 http://ubuntuforums.org/showthread.php?t=1177021
 http://rants.atmurray.net/2007/01/pppd-persist-not-so-persist-with-udev.html

Signed-off-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
Acked-by: Steffen Sledz <sledz@dresearch-fe.de>
---
 recipes/udev/udev/network.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Steffen Sledz - July 4, 2011, 8:36 a.m.
On 30.06.2011 09:33, Steffen Sledz wrote:
> From: Mario Schuknecht <schuknecht@dresearch-fe.de>
> 
> When a pppd session is disconnected it triggers the udev to ifdown the
> ppp link which kills pppd and inhibits a reconnection.
> 
> Now avoid udev stopping ppp connections.
> 
> See also:
>  https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/396804
>  https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/78043
>  http://ubuntuforums.org/showthread.php?t=1177021
>  http://rants.atmurray.net/2007/01/pppd-persist-not-so-persist-with-udev.html
> 
> Signed-off-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
> Acked-by: Steffen Sledz <sledz@dresearch-fe.de>
> ---
>  recipes/udev/udev/network.sh |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/recipes/udev/udev/network.sh b/recipes/udev/udev/network.sh
> index 182c26d..d287855 100644
> --- a/recipes/udev/udev/network.sh
> +++ b/recipes/udev/udev/network.sh
> @@ -9,6 +9,8 @@ test -x /sbin/cardctl && exit 0
>  # We get two "add" events for hostap cards due to wifi0
>  echo "$INTERFACE" | grep -q wifi && exit 0
>  
> +# Avoid udev stopping persistent ppp connections
> +echo "$INTERFACE" | grep -q ppp && exit 0
>  
>  # Check if /etc/init.d/network has been run yet to see if we are 
>  # called by starting /etc/rcS.d/S03udev and not by hotplugging a device

Ping!

Patch

diff --git a/recipes/udev/udev/network.sh b/recipes/udev/udev/network.sh
index 182c26d..d287855 100644
--- a/recipes/udev/udev/network.sh
+++ b/recipes/udev/udev/network.sh
@@ -9,6 +9,8 @@  test -x /sbin/cardctl && exit 0
 # We get two "add" events for hostap cards due to wifi0
 echo "$INTERFACE" | grep -q wifi && exit 0
 
+# Avoid udev stopping persistent ppp connections
+echo "$INTERFACE" | grep -q ppp && exit 0
 
 # Check if /etc/init.d/network has been run yet to see if we are 
 # called by starting /etc/rcS.d/S03udev and not by hotplugging a device