#! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
