1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#!/bin/sh
#
# netenv initscript
# Followed http://wiki.debian.org/LSBInitScripts
#
### BEGIN INIT INFO
# Provides: netenv
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Should-Start: $network
# Should-Stop: $network
# 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
|