2 # Vpnc helper script for maemo
4 if [ "$1" = "connect" ]; then
5 shift # need to remove "connect" from getting passed to vpnc
6 CMD="/usr/sbin/vpnc $*"
9 elif [ "$1" = "disconnect" ]; then
10 # vpngui knows our pid..
11 kill -TERM $2 > /dev/null 2>&1
12 # In case that didn't work...
13 killall vpnc > /dev/null 2>&1
14 # ..and pretend everything went fine
18 elif [ "$1" = "reconnect" ]; then
19 # vpngui knows our pid..
20 kill -USR1 $2 > /dev/null 2>&1