From e943f3a8c967d95cb9d57367a57db78e79972d74 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 25 Nov 2021 20:38:04 +0100 Subject: move archlinux stuff to subdir --- misc/arch/etc/initcpio/hooks/vtcol | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 misc/arch/etc/initcpio/hooks/vtcol (limited to 'misc/arch/etc/initcpio/hooks') 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 -- cgit v1.2.3