#!/bin/sh
#
# fx       Sets up Server and IP forwarding for FX.
#
# description: Starts or shuts down the FX server.


# Source function library
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
	if [ -f /etc/fx_forward ]
	then
		echo 1 > /proc/sys/net/ipv4/ip_forward
	fi
	if [ -f /etc/fx_start ]
	then
		`cat /etc/fx_start` -b
	fi
        ;;
  stop)
  
        ;;
  status)

	;;
  restart)
	cd $CWD
	$0 stop
	$0 start
	;;
  reload)
	;;
  *)
	echo "Usage: fx {start|stop|restart|reload|status}"
	exit 1
esac

exit 0

