SOURCES: acpid.init - verbose via rc-sysinit of loaded module name...

glen glen at pld-linux.org
Mon Nov 26 20:26:15 CET 2007


Author: glen                         Date: Mon Nov 26 19:26:15 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- verbose via rc-sysinit of loaded module names is pointless and slow. just load the modules

---- Files affected:
SOURCES:
   acpid.init (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: SOURCES/acpid.init
diff -u SOURCES/acpid.init:1.21 SOURCES/acpid.init:1.22
--- SOURCES/acpid.init:1.21	Sun Sep 17 18:17:31 2006
+++ SOURCES/acpid.init	Mon Nov 26 20:26:10 2007
@@ -24,30 +24,30 @@
 start() {
 	if [ ! -f /var/lock/subsys/acpid ]; then
 		if [ ! -d /proc/acpi/button ]; then
-			_modprobe ospm_button
-			_modprobe button
+			modprobe -s ospm_button
+			modprobe -s button
 		fi
 		if [ "$(kernelverser)" -lt "002006" ] && is_yes "$MODPROBE_OSPM_SYSTEM"; then
-			_modprobe single ospm_system
+			modprobe -s ospm_system
 		fi
 		# Load additional modules:
 		if [ -n "$LAPTOP_MODULES" ]; then
 			for i in $LAPTOP_MODULES; do
-				_modprobe single $i
+				modprobe -s $i
 			done
 		fi
 		if [ -n "$VARIOUS_MODULES" ]; then
 			for i in $VARIOUS_MODULES; do
-				_modprobe single $i
+				modprobe -s $i
 			done
 		fi
 		# Determine if it's ASUS or TOSHIBA laptop
 		if is_yes "$ASUS_LAPTOP"; then
-			_modprobe asus_acpi
+			modprobe -s asus_acpi
 		elif is_yes "$TOSHIBA_LAPTOP"; then
-			_modprobe toshiba_acpi
+			modprobe -s toshiba_acpi
 		elif is_yes "$IBM_LAPTOP"; then
-			_modprobe ibm_acpi
+			modprobe -s ibm_acpi
 		fi
 		# starting:
 		msg_starting acpid $PROGRAM_ARGS
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/acpid.init?r1=1.21&r2=1.22&f=u



More information about the pld-cvs-commit mailing list