summaryrefslogtreecommitdiff
path: root/pm/sleep.d
diff options
context:
space:
mode:
Diffstat (limited to 'pm/sleep.d')
-rwxr-xr-xpm/sleep.d/00clear2
-rwxr-xr-xpm/sleep.d/00logging2
-rw-r--r--pm/sleep.d/01grub4
-rwxr-xr-xpm/sleep.d/05led2
-rwxr-xr-xpm/sleep.d/10NetworkManager2
-rwxr-xr-xpm/sleep.d/20video2
-rwxr-xr-xpm/sleep.d/49bluetooth2
-rwxr-xr-xpm/sleep.d/50modules2
-rwxr-xr-xpm/sleep.d/55battery2
-rwxr-xr-xpm/sleep.d/65alsa2
-rwxr-xr-xpm/sleep.d/90clock3
-rwxr-xr-xpm/sleep.d/94cpufreq2
-rwxr-xr-xpm/sleep.d/95led4
-rwxr-xr-xpm/sleep.d/99video2
14 files changed, 16 insertions, 17 deletions
diff --git a/pm/sleep.d/00clear b/pm/sleep.d/00clear
index 6ed01ca..b96e0a7 100755
--- a/pm/sleep.d/00clear
+++ b/pm/sleep.d/00clear
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
. /usr/lib/pm-utils/functions
diff --git a/pm/sleep.d/00logging b/pm/sleep.d/00logging
index 356acb0..563745a 100755
--- a/pm/sleep.d/00logging
+++ b/pm/sleep.d/00logging
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
. /usr/lib/pm-utils/functions
diff --git a/pm/sleep.d/01grub b/pm/sleep.d/01grub
index 0dac5a1..4500c39 100644
--- a/pm/sleep.d/01grub
+++ b/pm/sleep.d/01grub
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
default_resume_kernel()
{
@@ -10,7 +10,7 @@ default_resume_kernel()
esac
[ -x /sbin/grubby -a -x /sbin/grub ] || return 1
- [ -e /boot/vmlinuz-$(uname -r) ] || return 1
+ [ -e "/boot/vmlinuz-$(uname -r)" ] || return 1
out=$(/sbin/grubby --info /boot/vmlinuz-$(uname -r) |grep index)
[ -n "${out}" ] || return 1
diff --git a/pm/sleep.d/05led b/pm/sleep.d/05led
index dd9a21f..f1c4201 100755
--- a/pm/sleep.d/05led
+++ b/pm/sleep.d/05led
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
[ -f /proc/acpi/ibm/led ] || exit 0
diff --git a/pm/sleep.d/10NetworkManager b/pm/sleep.d/10NetworkManager
index 052b2ea..f9eeb91 100755
--- a/pm/sleep.d/10NetworkManager
+++ b/pm/sleep.d/10NetworkManager
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
. /usr/lib/pm-utils/functions
diff --git a/pm/sleep.d/20video b/pm/sleep.d/20video
index 3790bdb..e88eb75 100755
--- a/pm/sleep.d/20video
+++ b/pm/sleep.d/20video
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Copyright 2006-2007 Richard Hughes <richard@hughsie.com>
# Copyright 2007 Peter Jones <pjones@redhat.com>
diff --git a/pm/sleep.d/49bluetooth b/pm/sleep.d/49bluetooth
index d3173b3..26a6de5 100755
--- a/pm/sleep.d/49bluetooth
+++ b/pm/sleep.d/49bluetooth
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
. /usr/lib/pm-utils/functions
diff --git a/pm/sleep.d/50modules b/pm/sleep.d/50modules
index 5b3a184..bab7a6c 100755
--- a/pm/sleep.d/50modules
+++ b/pm/sleep.d/50modules
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
. /usr/lib/pm-utils/functions
diff --git a/pm/sleep.d/55battery b/pm/sleep.d/55battery
index 1d07559..680cee4 100755
--- a/pm/sleep.d/55battery
+++ b/pm/sleep.d/55battery
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
. /usr/lib/pm-utils/functions
diff --git a/pm/sleep.d/65alsa b/pm/sleep.d/65alsa
index 1a94429..68400db 100755
--- a/pm/sleep.d/65alsa
+++ b/pm/sleep.d/65alsa
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
. /usr/lib/pm-utils/functions
diff --git a/pm/sleep.d/90clock b/pm/sleep.d/90clock
index 454083b..3adae98 100755
--- a/pm/sleep.d/90clock
+++ b/pm/sleep.d/90clock
@@ -1,5 +1,4 @@
-#!/bin/bash
-
+#!/bin/sh
. /usr/lib/pm-utils/functions
suspend_clock() {
diff --git a/pm/sleep.d/94cpufreq b/pm/sleep.d/94cpufreq
index 011ef55..56648b0 100755
--- a/pm/sleep.d/94cpufreq
+++ b/pm/sleep.d/94cpufreq
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
. /usr/lib/pm-utils/functions
diff --git a/pm/sleep.d/95led b/pm/sleep.d/95led
index 0c7d041..1704207 100755
--- a/pm/sleep.d/95led
+++ b/pm/sleep.d/95led
@@ -1,6 +1,6 @@
-#!/bin/bash
+#!/bin/sh
-[ -f /proc/acpi/ibm/led ] || exit 0
+[ -f /proc/acpi/ibm/led ] || exit 1
case "$1" in
thaw|resume)
diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video
index b28434f..882cae3 100755
--- a/pm/sleep.d/99video
+++ b/pm/sleep.d/99video
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Copyright 2006-2007 Richard Hughes <richard@hughsie.com>
# Copyright 2007 Peter Jones <pjones@redhat.com>