tags 491388 patch
thanks

(debcheckout couldn't fetch the source from google.code, kept asking for a
passwd)

Patch attached. This is just too slow to ignore.
---
diff -Nrup acpid-1.0.6/debian/acpid.init.d 
acpid-1.0.6.notslow/debian/acpid.init.d
--- acpid-1.0.6/debian/acpid.init.d     2008-08-27 08:41:57.000000000 +1000
+++ acpid-1.0.6.notslow/debian/acpid.init.d     2008-08-27 08:41:34.000000000 
+1000
@@ -28,9 +28,6 @@ fi
 . /lib/lsb/init-functions
 . /etc/default/rcS
 
-# Are we Debian or Ubuntu?
-DISTRO=$(lsb_release -is 2>/dev/null || echo Debian)
-
 if [ "$VERBOSE" = "no" ]; then
        MODPROBE_OPTIONS="$MODPROBE_OPTIONS --quiet"
        export MODPROBE_OPTIONS
@@ -53,12 +50,10 @@ load_modules() {
          MODAVAIL=""
        fi
 
-       if [ $DISTRO = "Ubuntu" ]; then
-               LOC="/lib/modules/$(uname -r)/kernel/ubuntu/acpi"
-               if [ -d "$LOC" ]; then
-                 MODAVAIL="$MODAVAIL $( ( find $LOC -type f -name "*.o" 
-printf "basename %f .o\n"; \
-                       find $LOC -type f -name "*.ko" -printf "basename %f 
.ko\n" ) | /bin/sh )"
-               fi
+       LOC="/lib/modules/$(uname -r)/kernel/ubuntu/acpi"
+       if [ -d "$LOC" ]; then
+         MODAVAIL="$MODAVAIL $( ( find $LOC -type f -name "*.o" -printf 
"basename %f .o\n"; \
+               find $LOC -type f -name "*.ko" -printf "basename %f .ko\n" ) | 
/bin/sh )"
        fi
 
        if [ "$MODULES" = "all" ]; then
---



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to