3 # freenet6 an ipv6 tunneling service for dynamic ips
7 # description: unavailable
10 # Source function library
11 . /etc/rc.d/init.d/functions
14 . /etc/sysconfig/network
16 # Check that networking is up.
17 if is_yes "${NETWORKING}"; then
18 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
19 msg_network_down FREENET6
26 # Check that IPv6 networking is up.
27 if is_no "${IPV6_NETWORKING}"; then
28 echo "freenet6 needs ipv6 networking"
33 # See how we were called.
36 # Check if the service is already running?
37 if [ ! -f /var/lock/subsys/freenet6 ]; then
39 /usr/sbin/tspc -vf /etc/tspc/tspc.conf
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/freenet6
43 msg_already_running freenet6
47 if [ -f /var/lock/subsys/freenet6 ]; then
50 rm -f /var/lock/subsys/freenet6
52 msg_not_running freenet6
65 msg_usage "$0 {start|stop|restart|force-reload|status}"