summaryrefslogtreecommitdiff
path: root/misc/etc/initcpio/hooks
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-05-31 09:54:01 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2015-05-31 09:54:01 +0200
commitcaf8ec2e2623407dfd933959eaaea4f08612729f (patch)
tree10c9e003108f01b077ffddec8ed1953dba3b092a /misc/etc/initcpio/hooks
parent5047d01be77832cc7a03608777122b471c4a9156 (diff)
downloadvtcol-caf8ec2e2623407dfd933959eaaea4f08612729f.tar.gz
misc: add example initramfs setup
Diffstat (limited to 'misc/etc/initcpio/hooks')
-rw-r--r--misc/etc/initcpio/hooks/vtcol21
1 files changed, 21 insertions, 0 deletions
diff --git a/misc/etc/initcpio/hooks/vtcol b/misc/etc/initcpio/hooks/vtcol
new file mode 100644
index 0000000..be02f24
--- /dev/null
+++ b/misc/etc/initcpio/hooks/vtcol
@@ -0,0 +1,21 @@
+#!/usr/bin/ash
+###############################################################################
+# Copyright 2015 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