diff options
Diffstat (limited to 'net/poptop/files/pptpd.sh')
-rw-r--r-- | net/poptop/files/pptpd.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/net/poptop/files/pptpd.sh b/net/poptop/files/pptpd.sh index eeb61a0a7a63..f2e9d47f2bb7 100644 --- a/net/poptop/files/pptpd.sh +++ b/net/poptop/files/pptpd.sh @@ -1,2 +1,16 @@ #! /bin/sh -[ -x /usr/local/sbin/pptpd ] && /usr/local/sbin/pptpd && echo -n ' pptpd' + +case $1 in +start) + [ -x /usr/local/sbin/pptpd ] && /usr/local/sbin/pptpd && echo -n ' pptpd' + ;; +stop) + killall pptpd && echo -n ' pptpd' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 |