View | Details | Raw Unified
Collapse All | Expand All

(-) suspend2 (-6 / +3 lines)
 Lines 211-218    Link Here 
		vecho 0 "$EXE: Filewriter size is not numeric!"
		vecho 0 "$EXE: Filewriter size is not numeric!"
		exit 1
		exit 1
	    fi
	    fi
	    AddSuspendHook 06 Swsusp2SetupFilewriter
	    AddSuspendHook 11 Swsusp2SetupFilewriter
	    AddResumeHook 06 Swsusp2CleanupFilewriter
	    AddResumeHook 11 Swsusp2CleanupFilewriter
	    ;;
	    ;;
	verifyfilewriterresume2)
	verifyfilewriterresume2)
	    BoolIsOn "$1" "$2" && return 0
	    BoolIsOn "$1" "$2" && return 0
 Lines 691-697    Link Here 
    read REPLY < $SWSUSP_ROOT/$RESUME2_FILE
    read REPLY < $SWSUSP_ROOT/$RESUME2_FILE
    if [ -z "$REPLY" ] ; then
    if [ -z "$REPLY" ] ; then
	cat <<EOT
	cat <<EOT
You haven't specified a resume2= parameter on your kernel command line
You haven't specified a resume=/resume2= parameter on your kernel command line
Your GRUB or LILO config should have something like $RESUME2_FILE=swap:/dev/hdaX
Your GRUB or LILO config should have something like $RESUME2_FILE=swap:/dev/hdaX
where /dev/hdaX is your swap partition. You will then need to either reboot
where /dev/hdaX is your swap partition. You will then need to either reboot
 Lines 800-808    Link Here 
    echo "$SWSUSP_FILEWRITER_LOC" > $HIBERNATE_FILEWRITER_TRAIL
    echo "$SWSUSP_FILEWRITER_LOC" > $HIBERNATE_FILEWRITER_TRAIL
    chmod 600 $HIBERNATE_FILEWRITER_TRAIL
    chmod 600 $HIBERNATE_FILEWRITER_TRAIL
    # Don't overwrite the resume2 line now.
    SWSUSP_RESUME2="$new_resume2"
    # Now verify our resume2 is correct unless told otherwise.
    # Now verify our resume2 is correct unless told otherwise.
    [ x"$SWSUSP_FILEWRITER_NOVERIFY" = "x1" ] && return 0
    [ x"$SWSUSP_FILEWRITER_NOVERIFY" = "x1" ] && return 0