]> git.pld-linux.org Git - packages/geninitrd.git/blob - geninitrd-inst.patch
Fix inst usage.
[packages/geninitrd.git] / geninitrd-inst.patch
1 Index: geninitrd
2 ===================================================================
3 --- geninitrd   (wersja 8652)
4 +++ geninitrd   (kopia robocza)
5 @@ -258,7 +258,7 @@
6  
7  inst() {
8         if [ "$#" != "2" ];then
9 -               echo "usage: inst <file> <destination>"
10 +               echo >&2 "usage: inst <file> <destination>"
11                 return
12         fi
13         debug "$1 -> $2"
14 @@ -1072,7 +1072,8 @@
15         mkdir -p $MNTIMAGE/etc
16         mkdir -p $MNTIMAGE/dev
17         resume_dev="$(awk '/^resume device =/ { print $4 } ' /etc/suspend.conf)"
18 -       inst /dev/snapshot $resume_dev $MNTIMAGE/dev
19 +       inst /dev/snapshot $MNTIMAGE/dev
20 +       inst $resume_dev $MNTIMAGE/dev
21         inst /etc/suspend.conf $MNTIMAGE/etc/suspend.conf
22         inst /usr/sbin/resume "$MNTIMAGE/bin/resume"
23         echo "resume" >> "$s"
This page took 0.549459 seconds and 3 git commands to generate.