mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
840a3b8fc8
linux-3-CHAKRA: update PATCHCFG extramodules: rebuild for new kernel
15 lines
366 B
Bash
15 lines
366 B
Bash
# vim:set ft=sh:
|
|
run_hook ()
|
|
{
|
|
tuxonice_sys="/sys/power/tuxonice"
|
|
tuxoniceui_cmd="/usr/sbin/tuxoniceui"
|
|
|
|
if [ -d $tuxonice_sys -a -x $tuxoniceui_cmd ]; then
|
|
if [ -c /dev/fb0 -a -d /etc/splash/tuxonice ]; then
|
|
tuxoniceui_opt="-f"
|
|
fi
|
|
|
|
echo $tuxoniceui_cmd $tuxoniceui_opt > $tuxonice_sys/user_interface/program
|
|
fi
|
|
}
|