summaryrefslogtreecommitdiff
path: root/misc/etc/initcpio/hooks/vtcol
blob: 42170b48a4347684898ac2ca0c70dc20ae5a95bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/ash
###############################################################################
# Copyright 2015--2017 Philipp Gesang
# Example mkinitcpio hook invoking vtcol in the initramfs environment
###############################################################################
#
# See mkinitcpio(8) for details.
#

run_hook ()
{
    binary=/usr/bin/vtcol
    scheme=solarized
    schemedir=/usr/share/vtcol/schemes

    if [ -f "${schemedir}/${scheme}" ] && [ -x "${binary}" ]; then
        "${binary}" --scheme "${schemedir}/${scheme}"
    fi
}

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