SOURCES: ipw3945d-init - it has to be started before network - wai...

megabajt megabajt at pld-linux.org
Sun May 13 20:00:35 CEST 2007


Author: megabajt                     Date: Sun May 13 18:00:35 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- it has to be started before network
- waits 3 second after starting (without it, interface using ipw3945 driver won't start)

---- Files affected:
SOURCES:
   ipw3945d-init (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/ipw3945d-init
diff -u SOURCES/ipw3945d-init:1.2 SOURCES/ipw3945d-init:1.3
--- SOURCES/ipw3945d-init:1.2	Sun Feb 25 13:27:55 2007
+++ SOURCES/ipw3945d-init	Sun May 13 20:00:30 2007
@@ -1,23 +1,25 @@
 #!/bin/sh
 #
-# Intel Pro/wireless 3945BG:   ipw3945d deamon
+# Intel PRO/Wireless 3945ABG:   ipw3945d deamon
 #
-# chkconfig: 35 20 86
-# description: This is a daemon for automatically switching \
-# ipw3945d on to get access to any AP.
+# chkconfig:	2345 09 91
+#
+# description:	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"
+DESC="Intel PRO/Wireless 3945ABG"
 NAME="ipw3945d"
 
 start() {
+	# Check if the service is already running?
 	if [ ! -f /var/lock/subsys/ipw3945d ]; then
 		msg_starting "$DESC: $NAME"
 		/sbin/modprobe --ignore-install ipw3945
-		daemon /sbin/ipw3945d --timeout=-1 --quiet
+		daemon --waitforname ipw3945d --waitfortime 3 /sbin/ipw3945d --timeout=-1 --quiet
 		RETVAL=$?
 		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/ipw3945d
 	else
@@ -27,6 +29,7 @@
 
 stop() {
 	if [ -f /var/lock/subsys/ipw3945d ]; then
+		# Stop daemons.
 		msg_stopping "$DESC: $NAME"
 		/sbin/ipw3945d --kill
 		/sbin/modprobe -r --ignore-remove ipw3945
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/ipw3945d-init?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list