summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-04-10 00:36:17 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-04-10 00:36:17 +0200
commit93fd21fa56a12792123ece136c979f00aa35eafa (patch)
treeb35416caec7574c6eba2d14e39508692dd0d6fb6 /src
parente4cbb65924b7ad4f3c2a89a53a59dcda8257a29e (diff)
downloadnetctl-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.
Diffstat (limited to 'src')
-rw-r--r--src/connections/ppp3
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"