dfa5b788f8
- added a man-page - installing additional docs - fixed installing with 0666 - sample start script now works and actually contains an usefull example - fixed install target - added a comment (in pkg-message) about ESP "Protocol not supported" PR: 60364 Submitted by: maintainer
29 lines
570 B
Bash
29 lines
570 B
Bash
#! /bin/sh
|
|
|
|
PREFIX=%%PREFIX%%
|
|
PIDFILE=/var/run/vpnc.pid
|
|
|
|
# change these variables and activate comments
|
|
# below to get a full tunnel
|
|
VPNGATEWAY=vpn.rwth-aachen.de
|
|
ROUTER=192.168.111.2
|
|
|
|
case "$1" in
|
|
start)
|
|
[ -x ${PREFIX}/sbin/vpnc ] && ${PREFIX}/sbin/vpnc --pid-file ${PIDFILE} &&
|
|
# route add -host ${VPNGATEWAY} ${ROUTER}
|
|
# route delete default &&
|
|
# route add default -interface tun0 &&
|
|
echo -n ' vpnc'
|
|
;;
|
|
stop)
|
|
kill `cat ${PIDFILE}`
|
|
# route delete default &&
|
|
# route add default ${ROUTER}
|
|
;;
|
|
*)
|
|
echo "Usage: `basename $0` {start|stop}" >&2
|
|
;;
|
|
esac
|
|
|
|
exit 0
|