~ubuntu-branches/debian/stretch/uswsusp/stretch

« back to all changes in this revision

Viewing changes to scripts/install-resume.sh

  • Committer: Bazaar Package Importer
  • Author(s): Christian Perrier
  • Date: 2008-08-20 09:09:13 UTC
  • mfrom: (0.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080820090913-0eahue1zo8egcxls
Tags: 0.8-1.1
* Non-maintainer upload to fix pending l10n issues.
* Remove extra and useless debian/po/ff/ directory
* Debconf translation updates:
  - Japanese. Closes: #489939
  - German. Closes: #493747
  - French. Closes: #493771
  - Romanian. Closes: #493772
  - Galician. Closes: #494050
  - Finnish. Closes: #494087
  - Italian. Closes: #494096
  - Basque. Closes: #494277
  - Basque. Closes: #494277
  - Czech. Closes: #494410
  - Swedish. Closes: #494412
  - Russian. Closes: #495412
  - Portuguese. Closes: #495451
  - Spanish. Closes: #495499
  - Slovak. Closes: #495516

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
if [ -z "$RESUME" ]; then
 
4
        RESUME="resume"
 
5
fi
 
6
if [ -z "$BOOT_DIR" ]; then
 
7
        BOOT_DIR="/boot"
 
8
fi
 
9
if [ -z "$INITRD_FILE" ]; then
 
10
        INITRD_FILE="$BOOT_DIR/resume-initrd"
 
11
fi
 
12
if [ -z "$MOUNT_POINT" ]; then
 
13
        MOUNT_POINT="/mnt"
 
14
fi
 
15
 
 
16
if [ -f "$RESUME" -a -f "$INITRD_FILE" -a -d "$MOUNT_POINT" ]; then
 
17
        cp "$INITRD_FILE" "$INITRD_FILE.orig"
 
18
        mount -t ext2 -o loop "$INITRD_FILE" "$MOUNT_POINT" && \
 
19
                install --mode=0755 "$RESUME" "$MOUNT_POINT"
 
20
 
 
21
        umount "$MOUNT_POINT"
 
22
else
 
23
        echo "Could not install the resume tool" >&2
 
24
        exit 1
 
25
fi
 
26