summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJeff Bailey <jbailey@ubuntu.com>2005-08-16 13:34:37 -0400
committerJeff Bailey <jbailey@ubuntu.com>2005-08-16 13:34:37 -0400
commitbaab5f5fc3d6cfe4821a82e5b17f0f57bef060b0 (patch)
tree274ece2445c9c99662927bcc762071cae1700e97 /scripts
parent618760b004d07efb11f05e57d46ed4b5adb2823c (diff)
downloadinitramfs-tools-baab5f5fc3d6cfe4821a82e5b17f0f57bef060b0.tar.gz
initramfs-tools-baab5f5fc3d6cfe4821a82e5b17f0f57bef060b0.zip
Cleanup commit, sorry for the mess
Diffstat (limited to 'scripts')
-rw-r--r--scripts/init-premount/acpid19
-rw-r--r--scripts/local-premount/suspend30
2 files changed, 49 insertions, 0 deletions
diff --git a/scripts/init-premount/acpid b/scripts/init-premount/acpid
new file mode 100644
index 0000000..61d226a
--- /dev/null
+++ b/scripts/init-premount/acpid
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+modprobe -q fan
+modprobe -q thermal
diff --git a/scripts/local-premount/suspend b/scripts/local-premount/suspend
new file mode 100644
index 0000000..5791123
--- /dev/null
+++ b/scripts/local-premount/suspend
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+if [ "x${resume}" = "x" ]; then
+ exit
+fi
+
+if [ ! -e ${resume} ]; then
+ exit
+fi
+
+if [ -e /sys/power/resume ]; then
+ major=$((0x$(stat -c%t ${resume})))
+ minor=$((0x$(stat -c%T ${resume})))
+ echo ${major}:${minor} >/sys/power/resume
+fi