SOURCE_URL[0]=http://ftp.debian.org/debian/pool/main/a/acpi-support/$SOURCE
-
SOURCE_HASH=sha512:01c8f16da1c663510c21db862d5a9fbd7275966f03122f61a2a440514b83598cb960809a64c0f5c7a42877c89a98e480250314e98e471ab3e866fade08305674
+
SOURCE_HASH=sha512:f7421f546a3f87aeb308a64df88a59a59419c8fe4d8b185794270dbb84bdd584c0de3dd55ea5f3a496243438c6d423c88ae2374066444fab467cf7fd1973d09b
PATCHLEVEL=1
LICENSE[0]=GPL
WEB_SITE=http://packages.qa.debian.org/a/acpi-support.html
+ BUILD_API=2
ENTERED=20071015
SHORT="acpi-support include scripts for handling many ACPI events"
cat << EOF
-acpi-support contains scripts to react to various ACPI events.
-It only includes scripts for events that can be supported with
-some level of safety cross platform.
+This source is shared between acpi-support-base and acpi-support,
+both get installed by the spell, :).
-It is able to:
+acpi-support-base contains scripts to react to various base ACPI events
+such as the power-button. For more extensive ACPI support, including
+support for suspend-to-RAM and for various laptop features, see
+acpi-support
+
+acpi-support contains scripts to react to various ACPI events. It only
+includes scripts for events that can be supported with some level of
+safety cross platform. It is able to:
-# Changing to support smgl init way to do things...
+# Changing to support SMGL init way to do things...
function start() {
- echo "Checking battery state..."
- if [ x"`echo /proc/acpi/ac_adapter/*`" != x"/proc/acpi/ac_adapter/*"
]; then
- $PROGRAM
- fi
- # Source everything in /etc/acpi/start.d/
- for SCRIPT in /etc/acpi/start.d/*.sh; do
- if [ -f "$SCRIPT" ] ; then
- . $SCRIPT
- fi
- done
- echo "Done..."
+ echo "Checking battery state..."
+ if [ x"`echo /proc/acpi/ac_adapter/*`" != x"/proc/acpi/ac_adapter/*" ];
then
+ $PROGRAM
+ fi
+ # Source everything in /etc/acpi/start.d/
+ for SCRIPT in /etc/acpi/start.d/*.sh; do
+ if [ -f "$SCRIPT" ] ; then
+ . $SCRIPT
+ fi
+ done
+ echo "Done..."
}
function stop() {
- echo "Disabling power management..."
- if [ x"`echo /proc/acpi/ac_adapter/*`" != x"/proc/acpi/ac_adapter/*"
]; then
- $PROGRAM stop
- fi
- echo "Done..."
+ echo "Disabling power management..."
+ if [ x"`echo /proc/acpi/ac_adapter/*`" != x"/proc/acpi/ac_adapter/*" ];
then
+ $PROGRAM stop
+ fi
+ echo "Done..."
}
function restart() {
- echo "Unsupported..."
+ echo "Unsupported..."
}
-
diff --git a/mobile/acpi-support/init.d/vbesave
b/mobile/acpi-support/init.d/vbesave
index 0738fe0..8da543f 100755
--- a/mobile/acpi-support/init.d/vbesave
+++ b/mobile/acpi-support/init.d/vbesave
@@ -6,9 +6,12 @@
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
+# Short-Description: Save VESA state at boot time
+# Description: VESA state is saved at boot time so that it can be
+# restored later to a sane state for example after a
suspend.
### END INIT INFO
-# Changing to support smgl init way to do things...
+# Changing to support SMGL init way to do things...
function start() {
if laptop-detect > /dev/null; then
@@ -38,11 +41,11 @@ function start() {
if [ "$SAVE_VBE_STATE" = "true" ]; then
if [ "$VERBOSE" = no ]; then
if ! $PROGRAM vbestate save > $VBESTATE 2>/dev/null; then
- echo "$?"
+ echo "$?"
fi
else
if ! $PROGRAM vbestate save > $VBESTATE ; then
- echo "$?"
+ echo "$?"
fi
fi
echo "VESA state saved..."
@@ -50,13 +53,12 @@ function start() {
echo "Done..."
}