[arch-commits] CVS update of arch/build/base/initscripts (PKGBUILD rc.sysinit)

Tobias Powalowski tpowa at archlinux.org
Sun Apr 22 09:37:54 EDT 2007


    Date: Sunday, April 22, 2007 @ 09:37:54
  Author: tpowa
    Path: /home/cvs-arch/arch/build/base/initscripts

Modified: PKGBUILD (1.168 -> 1.169) rc.sysinit (1.104 -> 1.105)

'upgpkg: added autoloading of standard acpi modules during boot, with the possibility to blacklist by default methods'


------------+
 PKGBUILD   |    6 +++---
 rc.sysinit |   18 ++++++++++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)


Index: arch/build/base/initscripts/PKGBUILD
diff -u arch/build/base/initscripts/PKGBUILD:1.168 arch/build/base/initscripts/PKGBUILD:1.169
--- arch/build/base/initscripts/PKGBUILD:1.168	Sat Feb 10 04:14:34 2007
+++ arch/build/base/initscripts/PKGBUILD	Sun Apr 22 09:37:53 2007
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD,v 1.168 2007/02/10 09:14:34 thomas Exp $
+# $Id: PKGBUILD,v 1.169 2007/04/22 13:37:53 tpowa Exp $
 # Maintainer: judd <jvinet at zeroflux.org>
 pkgname=initscripts
 pkgver=0.8
-pkgrel=6
+pkgrel=7
 pkgdesc="System initialization/bootup scripts"
 arch=(i686 x86_64)
 backup=(etc/inittab etc/rc.conf etc/rc.local etc/rc.local.shutdown)
@@ -13,7 +13,7 @@
 md5sums=('ec6e98cf3d2e4dfe588175a61015058c' 'b1d53aba3997e2a85cc887da45ec8c0f'\
          '9151763518526dffe33a2483b2e9dec3' 'bd236a57bc00aa4727b98c5ae401c457'\
          '3c1f9e4cadc877a0ac65de18b0b7df2c' '916fcfb9277f2188322b5bf9737810a0'\
-         'df82de02bc276ed82ead63e776406602' 'd4ec44f91434dcbceb2f8304fcb33880'\
+         'df82de02bc276ed82ead63e776406602' '4148312cd768bd56b73ed06f206ebdcc'\
          '99806e860138ff0dbba5be4b6bfaaa60' 'f638d2a7ecbdb1d0207023ef41621586'\
          'fba6fca3508578fc8b3c0ae1dd509373' '9ba9d13c648bc3e0fb4e2740e97cecff'\
          '324f1d8e26d31af0edb172319b839f82' '5c001e89db6705d082521db0623531fc'\
Index: arch/build/base/initscripts/rc.sysinit
diff -u arch/build/base/initscripts/rc.sysinit:1.104 arch/build/base/initscripts/rc.sysinit:1.105
--- arch/build/base/initscripts/rc.sysinit:1.104	Sat Feb 10 04:14:34 2007
+++ arch/build/base/initscripts/rc.sysinit	Sun Apr 22 09:37:53 2007
@@ -52,6 +52,24 @@
 		done
 		stat_done
 	fi
+	if [ -d /proc/acpi ]; then
+		stat_busy "Loading standard ACPI modules"
+		ACPI_MODULES="ac battery button fan processor thermal"
+		k="$(echo $BLACKLIST ${MOD_BLACKLIST[@]} | sed 's|-|_|g')"
+		j="$(echo ${MODULES[@]} | sed 's|-|_|g')"
+		#add disabled MODULES (!) to blacklist - much requested feature
+		for m in ${j}; do
+    			[ "$m" != "${m#!}" ] && k="${k} ${m#!}"
+		done
+		# add disablemodules= from commandline to blacklist
+		k="${k} $(echo ${disablemodules} | sed 's|-|_|g' | sed 's|,| |g')"
+		for n in ${ACPI_MODULES}; do
+            		if ! echo ${k} | /bin/grep "\<$n\>" 2>&1 >/dev/null; then
+                		/sbin/modprobe $n > /dev/null 2>&1
+            		fi
+		done	
+		stat_done
+	fi		
 fi
 
 # run udev uevents




More information about the arch-commits mailing list