[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 1.1.1-18-gf99fbc3

Darren Salt linux at youmustbejoking.demon.co.uk
Fri Jul 17 16:12:04 UTC 2009


The following commit has been merged in the master branch:
commit ff76e76819193d1851bfe0f6f21b143790282885
Author: Darren Salt <linux at youmustbejoking.demon.co.uk>
Date:   Fri Jul 17 16:49:51 2009 +0100

    Complete the defaults switch (missed the init script).

diff --git a/debian/eeepc-acpi-scripts.init b/debian/eeepc-acpi-scripts.init
index 7b0d8a7..5998191 100644
--- a/debian/eeepc-acpi-scripts.init
+++ b/debian/eeepc-acpi-scripts.init
@@ -98,10 +98,10 @@ case "$1" in
 	    log_action_cont_msg '(manual)'
 	elif [ "$(cat /sys/class/power_supply/AC0/online 2>/dev/null)" = 0 ]; then
 	    log_action_cont_msg '(battery)'
-	    [ "${PWR_CLOCK_BATTERY:+x}" ] && set_shengine "$PWR_CLOCK_BATTERY" || :
+	    set_shengine "${PWR_CLOCK_BATTERY:-$(($SHENGINE_LIMIT - 1))}" || :
 	else
 	    log_action_cont_msg '(AC)'
-	    [ "${PWR_CLOCK_AC:+x}" ] && set_shengine "$PWR_CLOCK_AC" || :
+	    set_shengine "${PWR_CLOCK_AC:-0}" || :
 	fi
 	log_action_end_msg $?
     fi

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-commits mailing list