SOURCES: ipw3945d-init (NEW) - init file for ipw3945d. NFY

Elan Ruusamäe glen at delfi.ee
Sun Feb 25 14:09:01 CET 2007


use /usr/share/doc/rc-scripts/template.init as template for new initscripts

On Sunday 25 February 2007, you wrote:
> Author: wolvverine                   Date: Sun Feb 25 11:33:09 2007 GMT
> Module: SOURCES                       Tag: HEAD
> ---- Log message:
> - init file for ipw3945d. NFY
>
> ---- Files affected:
> SOURCES:
>    ipw3945d-init (NONE -> 1.1)  (NEW)
>
> ---- Diffs:
>
> ================================================================
> Index: SOURCES/ipw3945d-init
> diff -u /dev/null SOURCES/ipw3945d-init:1.1
> --- /dev/null	Sun Feb 25 12:33:09 2007
> +++ SOURCES/ipw3945d-init	Sun Feb 25 12:33:04 2007
> @@ -0,0 +1,57 @@
> +#!/bin/sh
> +#
> +# Intel Pro/wireless 3945BG:   ipw3945d deamon
> +#
> +#chkconfig: 35 20 86
> +# This is a daemon for automatically switching
> +# ipw3945d on to get access to any AP.
> +#
> +
> +# Source function library.
> +
> +. /etc/rc.d/init.d/functions
> +
> +DESC="Intel PRO/Wireless 3945BG"
> +NAME="ipw3945d"
> +RETVAL=0
> +
> +case "$1" in
> + start)
> +	if [ ! -f /var/run/ipw3945d.pid ]; then
> +		msg_starting "$DESC: $NAME "
> +		/sbin/modprobe --ignore-install ipw3945
> +		daemon /sbin/ipw3945d --timeout=-1 --quiet
> +		RETVAL=$?
> +	else
> +		msg_already_running "$DESC: $NAME "
> +	fi
> +	exit $?
> +	;;
> + stop)
> +	if [ -f /var/run/ipw3945d.pid ]; then
> +		msg_stopping "$DESC: $NAME "
> +		/sbin/ipw3945d --kill
> +		/sbin/modprobe -r --ignore-remove ipw3945
> +		RETVAL=$?
> +	else
> +		msg_not_running "$DESC: $NAME "
> +	fi
> +	exit $?
> +	;;
> + status)
> +	status /sbin/ipw3945d
> +	exit $?
> +	;;
> + restart|force-reload)
> +	$0 stop
> +	sleep 1
> +	$0 start
> +	exit $?
> +	;;
> + *)
> +	msg_usage "$0 {start|stop|restart|force-reload|status}"
> +	exit 3
> +
> +esac
> +exit $RETVAL
> +
> ================================================================
> _______________________________________________
> pld-cvs-commit mailing list
> pld-cvs-commit at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit



-- 
glen


More information about the pld-devel-en mailing list