diff options
| author | Philipp Gesang <phg@phi-gamma.net> | 2021-11-25 20:38:04 +0100 | 
|---|---|---|
| committer | Philipp Gesang <phg@phi-gamma.net> | 2021-11-25 22:29:23 +0100 | 
| commit | e943f3a8c967d95cb9d57367a57db78e79972d74 (patch) | |
| tree | 14279be1921d2549ebba4644ee3d30e80c7ff38a /misc/arch/etc/initcpio | |
| parent | d6e8a37767644b50001e14ebbab594e799a94db7 (diff) | |
| download | vtcol-e943f3a8c967d95cb9d57367a57db78e79972d74.tar.gz | |
move archlinux stuff to subdir
Diffstat (limited to 'misc/arch/etc/initcpio')
| -rw-r--r-- | misc/arch/etc/initcpio/hooks/vtcol | 21 | ||||
| -rw-r--r-- | misc/arch/etc/initcpio/install/vtcol | 29 | 
2 files changed, 50 insertions, 0 deletions
diff --git a/misc/arch/etc/initcpio/hooks/vtcol b/misc/arch/etc/initcpio/hooks/vtcol new file mode 100644 index 0000000..42170b4 --- /dev/null +++ b/misc/arch/etc/initcpio/hooks/vtcol @@ -0,0 +1,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 diff --git a/misc/arch/etc/initcpio/install/vtcol b/misc/arch/etc/initcpio/install/vtcol new file mode 100644 index 0000000..400ec07 --- /dev/null +++ b/misc/arch/etc/initcpio/install/vtcol @@ -0,0 +1,29 @@ +#!/bin/bash +############################################################################### +# Copyright 2015--2017 Philipp Gesang +# Example mkinitcpio build hook invoking vtcol in the initramfs environment +############################################################################### +# +# See mkinitcpio(8) for details. +# +# This does nothing besides invoking ``add_runscript`` to add the vtcol +# initcpio hook and displaying some basic info. + +build () { +    add_runscript +} + +help () { +    cat <<ENOUGH +------------------------------------------------------------------------------- +                                     vtcol +------------------------------------------------------------------------------- + +                    Set the frambuffer console color scheme +                    during early boot. + +------------------------------------------------------------------------------- +ENOUGH +} + +# vim:ft=sh:sw=4:et  | 
