summarylogtreecommitdiffstats
path: root/initcpio-hook
blob: ae8569b1226c8ef9bad3de81739ec329d5a9ec86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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
}