mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-25 02:52:16 +08:00
840a3b8fc8
linux-3-CHAKRA: update PATCHCFG extramodules: rebuild for new kernel
32 lines
488 B
Bash
32 lines
488 B
Bash
#!/bin/bash
|
|
|
|
. /usr/lib/pm-utils/functions
|
|
|
|
case "$1" in
|
|
hibernate|suspend)
|
|
if [ -d "/sys/power/tuxonice" ]; then
|
|
suspend2ui="/sys/power/tuxonice/user_interface/program"
|
|
else
|
|
suspend2ui="/proc/suspend2/userui_program"
|
|
fi
|
|
if [ -e "${suspend2ui}" ]; then
|
|
names="text"
|
|
[ -d /etc/splash/tuxonice ] && names="fbsplash text"
|
|
for n in ${names} ; do
|
|
p="/usr/sbin/tuxoniceui_${n}"
|
|
if [ -x "${p}" ]; then
|
|
echo "${p}" > "${suspend2ui}"
|
|
break
|
|
fi
|
|
done
|
|
else
|
|
exit $NA
|
|
fi
|
|
;;
|
|
*)
|
|
exit $NA
|
|
;;
|
|
esac
|
|
|
|
exit $?
|