From be75c98a06d569fbaa2d86f92676af961795d094 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Fri, 21 Oct 2011 01:28:48 +0100 Subject: Add the mdkconf patch --- mandriva/vpn/vpn-stop | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 mandriva/vpn/vpn-stop (limited to 'mandriva/vpn/vpn-stop') diff --git a/mandriva/vpn/vpn-stop b/mandriva/vpn/vpn-stop new file mode 100755 index 00000000..048c909f --- /dev/null +++ b/mandriva/vpn/vpn-stop @@ -0,0 +1,18 @@ +#!/bin/sh + +TYPE=$1 +NAME=$2 +if [ -z "$TYPE" ] || [ -z "$NAME" ]; then + echo "usage: $0: " +fi + +PID=/var/run/"$TYPE"-"$NAME".pid + +. /etc/init.d/functions +if [ -e "$PID" ]; then + gprintf "Stopping VPN connection: " + killproc -p "$PID" + echo +else + gprintf "Connection isn't started.\n" +fi -- cgit v1.2.1