summaryrefslogtreecommitdiff
path: root/pm/sleep.d/01grub
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-01-28 19:59:34 +0000
committerRichard Hughes <richard@hughsie.com>2008-01-28 19:59:34 +0000
commit9785a16e5619b51d89343d290b9cae14bde2a954 (patch)
tree50c7029c6c474286979bc58c641a992f5aeb2ccd /pm/sleep.d/01grub
parent103ac946fc745e048736b78bd50d0dcc5dcb5da7 (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/sleep.d/01grub')
-rw-r--r--pm/sleep.d/01grub4
1 files changed, 2 insertions, 2 deletions
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