diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-08-15 16:25:47 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2007-08-15 16:25:47 +0000 |
commit | 932be980b0eabcdba5048681ab774534df2e71e1 (patch) | |
tree | 58d16458d2f24027944478e521cc83dfb2f2abb3 | |
parent | 152a6c849224c6a14cf184c125989d475aee58dd (diff) | |
download | suspend-utils-932be980b0eabcdba5048681ab774534df2e71e1.tar.gz |
Patch from Alon Bar-Lev <alon.barlev@gmail.com> to update the resume binary
installation scripts (use sh instead of bash and use BOOT_DIR).
-rwxr-xr-x | scripts/create-resume-initrd.sh | 2 | ||||
-rwxr-xr-x | scripts/install-resume.sh | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/scripts/create-resume-initrd.sh b/scripts/create-resume-initrd.sh index c72803a..0443163 100755 --- a/scripts/create-resume-initrd.sh +++ b/scripts/create-resume-initrd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh RESUME_DEVICE=$1 if [ -n "$2" ]; then diff --git a/scripts/install-resume.sh b/scripts/install-resume.sh index e412a72..40cdf17 100755 --- a/scripts/install-resume.sh +++ b/scripts/install-resume.sh @@ -1,10 +1,13 @@ -#!/bin/bash +#!/bin/sh if [ -z "$RESUME" ]; then RESUME="resume" fi +if [ -z "$BOOT_DIR" ]; then + BOOT_DIR="/boot" +fi if [ -z "$INITRD_FILE" ]; then - INITRD_FILE="/boot/resume-initrd" + INITRD_FILE="$BOOT_DIR/resume-initrd" fi if [ -z "$MOUNT_POINT" ]; then MOUNT_POINT="/mnt" |