summaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-02-10 23:37:30 +0100
committerThomas Bächler <thomas@archlinux.org>2010-02-10 23:37:30 +0100
commit6fdbf6edefb4371179783c2539d2f30c682bd155 (patch)
tree026e5b007ef5085950f2e0c029bf8338b4b24167 /hooks
parent6342c254a951db2c511730d54b209643e6bff6ff (diff)
downloadmkinitcpio-6fdbf6edefb4371179783c2539d2f30c682bd155.tar.gz
mkinitcpio-6fdbf6edefb4371179783c2539d2f30c682bd155.tar.xz
Add "consolefont" hook to set the console font early
Patch provided by Davorin Učakar, currently only unicode fonts are supported
Diffstat (limited to 'hooks')
-rw-r--r--hooks/consolefont10
1 files changed, 10 insertions, 0 deletions
diff --git a/hooks/consolefont b/hooks/consolefont
new file mode 100644
index 0000000..8183844
--- /dev/null
+++ b/hooks/consolefont
@@ -0,0 +1,10 @@
+# vim: set ft=sh:
+
+run_hook ()
+{
+ if [ -e /consolefont.psfu ]; then
+ msg -n ":: Loading console font..."
+ /usr/sbin/setfont -C /dev/console /consolefont.psfu
+ msg "done."
+ fi
+}