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 # Check if the service is already running?
34 if [ ! -f /var/lock/subsys/freenet6 ]; then
36 /usr/sbin/gw6c -f /etc/gw6c/gw6c.conf
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/freenet6
40 msg_already_running freenet6
45 if [ -f /var/lock/subsys/freenet6 ]; then
48 rm -f /var/lock/subsys/freenet6
50 msg_not_running freenet6
55 # See how we were called.
72 msg_usage "$0 {start|stop|restart|force-reload|status}"