Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 269603
Collapse All | Expand All

(-)a/defaults/initrd.scripts (-1 / +11 lines)
Lines 858-864 rundebugshell() { Link Here
858
858
859
swsusp_resume() {
859
swsusp_resume() {
860
	# determine swap resume partition
860
	# determine swap resume partition
861
	local device=$(ls -lL "${REAL_RESUME}" | sed 's/\  */ /g' | cut -d \  -f 5-6 | sed 's/,\ */:/')
861
	local device=$(get_real_filename "${REAL_RESUME}")
862
	[ -f /sys/power/resume ] && echo "${device}" > /sys/power/resume
862
	[ -f /sys/power/resume ] && echo "${device}" > /sys/power/resume
863
	return 0
863
	return 0
864
}
864
}
Lines 987-989 setup_unionfs() { Link Here
987
		USE_UNIONFS_NORMAL=0
987
		USE_UNIONFS_NORMAL=0
988
	fi
988
	fi
989
}
989
}
990
991
get_real_filename() {
992
	local file=$1
993
994
	if [ -L "${file}" ]; then
995
		readlink ${file}
996
	elif [ -f "${file}" ]; then
997
		echo "${file}"
998
	fi
999
}

Return to bug 269603