#!/bin/sh
#
# netenv initscript
# Followed http://wiki.debian.org/LSBInitScripts
#
### BEGIN INIT INFO
# Provides:          netenv
# Required-Start:    $local_fs hostname
# Required-Stop:     $local_fs
# X-Start-Before:    $network
# X-Stop-Before:     $network
# X-Interactive:     true
# Default-Start:     S
# Default-Stop:
# Short-Description: Start netenv at boot time
# Description:       This script only starts the program netenv
#                    during boot time.
### END INIT INFO

MYNAME="/etc/init.d/netenv"
NETENV_SCRIPT="/sbin/netenv"

test -x $NETENV_SCRIPT || exit 0

. /lib/lsb/init-functions

case "$1" in
    start|restart|force-reload|reload)
	log_daemon_msg "Starting network chooser environment" "netenv"
        $NETENV_SCRIPT
	log_end_msg $?
        ;;
    stop)
        ;;
    status)
	exit 4
	;;
    *)
        log_action_msg "Usage: $MYNAME {start|stop|restart|reload|force-reload}"
	exit 2
        ;;
esac

exit 0
