diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2012-04-10 00:36:17 +0200 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-04-10 00:36:17 +0200 |
commit | 93fd21fa56a12792123ece136c979f00aa35eafa (patch) | |
tree | b35416caec7574c6eba2d14e39508692dd0d6fb6 | |
parent | e4cbb65924b7ad4f3c2a89a53a59dcda8257a29e (diff) | |
download | netctl-93fd21fa56a12792123ece136c979f00aa35eafa.tar.gz netctl-93fd21fa56a12792123ece136c979f00aa35eafa.tar.xz |
PPP disconnect fix (FS#20569)
Commit 6b43b missed the point.
As noted by Cláudio, Jesse Young, Maciej Sitarz and Harley Laue.
-rw-r--r-- | src/connections/ppp | 3 |
1 files changed, 1 insertions, 2 deletions
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" |