summaryrefslogtreecommitdiffstats
path: root/hooks/consolefont
blob: 118a10d95d2a8c164988da05afd0582e78b028c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/ash

run_hook() {
    if [ -e /consolefont.psfu ]; then
        msg -n ":: Loading console font..."
        setfont -C /dev/console /consolefont.psfu
        msg "done."
    elif [ -e /consolefont.psf ]; then
        msg -n ":: Loading console font..."
        setfont -C /dev/console /consolefont.psf
        msg "done."
    else
        msg "No consolefont found despite added hook."
    fi
}

# vim: set ft=sh ts=4 sw=4 et: