summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/32disable_hibernation
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/live-bottom/32disable_hibernation')
-rwxr-xr-xscripts/live-bottom/32disable_hibernation27
1 files changed, 16 insertions, 11 deletions
diff --git a/scripts/live-bottom/32disable_hibernation b/scripts/live-bottom/32disable_hibernation
index 813abed..b75dbd9 100755
--- a/scripts/live-bottom/32disable_hibernation
+++ b/scripts/live-bottom/32disable_hibernation
@@ -1,25 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Configuring power management..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Configuring power management..."
+# live-initramfs script
gpm_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gnome-power-manager 2>/dev/null) || panel_version=""
if [ -n "$gpm_version" ]; then