mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
9cadab2a15
Freenet is the Freenet6 Tunnel Setup Protocol Client PR: 31791 Submitted by: Edwin Groothuis <edwin@mavetju.org>
31 lines
429 B
Bash
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
|