core/tuxonice-userui/userui-hook
philm 840a3b8fc8 linux: enable tuxonice optional
linux-3-CHAKRA: update PATCHCFG
extramodules: rebuild for new kernel
2012-02-18 08:48:16 +01:00

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
}