Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 32013 Details for
Bug 52019
swsusp2 script to ease hibernate and suspend to ram (New package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
prefix.patch
prefix.patch (text/plain), 1.42 KB, created by
Dennis Nienhüser (RETIRED)
on 2004-05-25 09:24:45 UTC
(
hide
)
Description:
prefix.patch
Filename:
MIME Type:
Creator:
Dennis Nienhüser (RETIRED)
Created:
2004-05-25 09:24:45 UTC
Size:
1.42 KB
patch
obsolete
>--- suspend.sh.orig 2004-05-25 00:08:07.000000000 +0200 >+++ dennis/suspend.sh 2004-05-25 08:33:31.724955368 +0200 >@@ -368,7 +368,7 @@ > CONFIGFILE=/etc/suspend.conf > INITDIR=/etc/init.d > RLVLDIR=/etc/init.d >- INSTALLDIR=/usr/local/sbin >+ INSTALLDIR=${PREFIX}/sbin > IFDOWN=/etc/init.d/net.eth0 > OPTDOWN=stop > IFUP=/etc/init.d/net.eth0 >@@ -453,9 +453,7 @@ > } ' $0 >> $TMP > > if [ ! -d $INSTALLDIR ] ;then >- echo "Directory $INSTALLDIR doesn't exist: installation aborted" >- rm $TMP >- exit 2 >+ mkdir -p "${INSTALLDIR}" > fi > > echo "Creating $INSTALLDIR/$BINNAME" >@@ -634,14 +632,16 @@ > SWSUSP_VT="9" > EOF > if [ ! -f $CONFIGFILE -o "$FORCE" = "yes" ] ;then >- echo "Creating file $CONFIGFILE" >- mv $TMP $CONFIGFILE >+ echo "Creating file ${PREFIX}/${CONFIGFILE}" >+ mkdir -p $(dirname "${PREFIX}/${CONFIGFILE}") >+ mv "${TMP}" "${PREFIX}/${CONFIGFILE}" > else > echo "Configuration file $CONFIGFILE exists: not overwritten" > echo -e "These are the differences:\n" > diff -u $CONFIGFILE $TMP >- echo "Creating file $CONFIGFILE.new" >- mv $TMP $CONFIGFILE.new >+ echo "Creating file ${PREFIX}/${CONFIGFILE}.new" >+ mkdir -p $(dirname "${PREFIX}/${CONFIGFILE}.new") >+ mv "${TMP}" "${PREFIX}/${CONFIGFILE}.new" > fi > > exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52019
:
32012
|
32013
|
35689
|
36590
|
43546
|
43766