1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/net/freenet6/files/freenet6.sh.in
Kevin Lo 9cadab2a15 Initial import of freenet6-0.9.5.
Freenet is the Freenet6 Tunnel Setup Protocol Client

PR: 31791
Submitted by: Edwin Groothuis <edwin@mavetju.org>
2001-11-08 15:24:26 +00:00

31 lines
429 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# Start or stop the IPv6 tunnel to Freenet6.net
#
case "$1" in
start)
echo -n " freenet6"
if [ -f @@PREFIX@@/etc/tspc.conf ]; then
@@PREFIX@@/bin/tspc
fi
;;
stop)
if [ ! -f /var/run/tspc.if ]; then
echo "TSPC not running"
exit 64
fi
/sbin/ifconfig `cat /var/run/tspc.if` destroy
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac