From 93fd21fa56a12792123ece136c979f00aa35eafa Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Tue, 10 Apr 2012 00:36:17 +0200 Subject: PPP disconnect fix (FS#20569) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 6b43b missed the point. As noted by Cláudio, Jesse Young, Maciej Sitarz and Harley Laue. --- src/connections/ppp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/connections/ppp') diff --git a/src/connections/ppp b/src/connections/ppp index a82677b..da0fd6f 100644 --- a/src/connections/ppp +++ b/src/connections/ppp @@ -21,9 +21,8 @@ ppp_down() { if [[ -e $PIDFILE ]]; then PID=$(head -1 $PIDFILE) - [[ -n "$PID" ]] && kill "$(head -1 $PIDFILE)" + [[ -n "$PID" ]] && kill "$PID" fi - kill "$(head -1 $PIDFILE)" } ppp_$1 "$2" -- cgit v1.2.3-24-g4f1b