On Friday, 3 August 2007 01:12, Alon Bar-Lev wrote: > > Use sh and not bash. > Support BOOT_DIR for install-resume.sh
Looks OK, I'm going to apply it. > --- > > diff -urNp suspend.org/scripts/create-resume-initrd.sh > suspend-0.6_beta1/scripts/create-resume-initrd.sh > --- suspend.org/scripts/create-resume-initrd.sh 2006-07-23 > 14:32:53.000000000 +0300 > +++ suspend-0.6_beta1/scripts/create-resume-initrd.sh 2007-08-02 > 23:12:52.000000000 +0300 > @@ -1,4 +1,4 @@ > -#!/bin/bash > +#!/bin/sh -x > > RESUME_DEVICE=$1 > if [ -n "$2" ]; then > diff -urNp suspend.org/scripts/install-resume.sh > suspend-0.6_beta1/scripts/install-resume.sh > --- suspend.org/scripts/install-resume.sh 2006-02-26 20:17:12.000000000 > +0200 > +++ suspend-0.6_beta1/scripts/install-resume.sh 2007-08-02 > 23:17:34.000000000 +0300 > @@ -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" > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Suspend-devel mailing list > Suspend-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/suspend-devel > > -- "Premature optimization is the root of all evil." - Donald Knuth ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel