|
|
@ -858,7 +858,7 @@ rundebugshell() {
|
|
|
|
|
|
|
|
|
|
|
|
swsusp_resume() {
|
|
|
|
swsusp_resume() {
|
|
|
|
# determine swap resume partition
|
|
|
|
# determine swap resume partition
|
|
|
|
local device=$(ls -lL "${REAL_RESUME}" | sed 's/\ */ /g' | cut -d \ -f 5-6 | sed 's/,\ */:/')
|
|
|
|
local device=$(get_real_filename "${REAL_RESUME}")
|
|
|
|
[ -f /sys/power/resume ] && echo "${device}" > /sys/power/resume
|
|
|
|
[ -f /sys/power/resume ] && echo "${device}" > /sys/power/resume
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -987,3 +987,13 @@ setup_unionfs() {
|
|
|
|
USE_UNIONFS_NORMAL=0
|
|
|
|
USE_UNIONFS_NORMAL=0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_real_filename() {
|
|
|
|
|
|
|
|
local file=$1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -L "${file}" ]; then
|
|
|
|
|
|
|
|
readlink ${file}
|
|
|
|
|
|
|
|
elif [ -f "${file}" ]; then
|
|
|
|
|
|
|
|
echo "${file}"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|