diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-01-28 19:59:34 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2008-01-28 19:59:34 +0000 |
commit | 9785a16e5619b51d89343d290b9cae14bde2a954 (patch) | |
tree | 50c7029c6c474286979bc58c641a992f5aeb2ccd /pm | |
parent | 103ac946fc745e048736b78bd50d0dcc5dcb5da7 (diff) |
All scripts are now POSIX compliant, change shebang lines to have them
run under /bin/sh instead of /bin/bash. Also take care of a few more
minor fixups.
Diffstat (limited to 'pm')
-rwxr-xr-x | pm/functions | 2 | ||||
-rw-r--r-- | pm/power.d/sched-powersave | 2 | ||||
-rwxr-xr-x | pm/sleep.d/00clear | 2 | ||||
-rwxr-xr-x | pm/sleep.d/00logging | 2 | ||||
-rw-r--r-- | pm/sleep.d/01grub | 4 | ||||
-rwxr-xr-x | pm/sleep.d/05led | 2 | ||||
-rwxr-xr-x | pm/sleep.d/10NetworkManager | 2 | ||||
-rwxr-xr-x | pm/sleep.d/20video | 2 | ||||
-rwxr-xr-x | pm/sleep.d/49bluetooth | 2 | ||||
-rwxr-xr-x | pm/sleep.d/50modules | 2 | ||||
-rwxr-xr-x | pm/sleep.d/55battery | 2 | ||||
-rwxr-xr-x | pm/sleep.d/65alsa | 2 | ||||
-rwxr-xr-x | pm/sleep.d/90clock | 3 | ||||
-rwxr-xr-x | pm/sleep.d/94cpufreq | 2 | ||||
-rwxr-xr-x | pm/sleep.d/95led | 4 | ||||
-rwxr-xr-x | pm/sleep.d/99video | 2 |
16 files changed, 18 insertions, 19 deletions
diff --git a/pm/functions b/pm/functions index e492545..9d80a38 100755 --- a/pm/functions +++ b/pm/functions @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # vim:noexpandtab export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib/pm-utils/bin diff --git a/pm/power.d/sched-powersave b/pm/power.d/sched-powersave index 9371d50..ac71ec0 100644 --- a/pm/power.d/sched-powersave +++ b/pm/power.d/sched-powersave @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh path_mc="/sys/devices/system/cpu/sched_mc_power_savings" path_smp="/sys/devices/system/cpu/sched_smp_power_savings" 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> |