summarylogtreecommitdiffstats
path: root/fbsplash.hook
diff options
context:
space:
mode:
authorRichard Neumann2017-03-22 11:23:10 +0100
committerRichard Neumann2017-03-22 11:23:10 +0100
commit7264f38686e31c11940b4e32e2b206af9c5e6493 (patch)
tree03c30c23ba167fbc82c13a7b7ef90bfc5471f080 /fbsplash.hook
downloadaur-7264f38686e31c11940b4e32e2b206af9c5e6493.tar.gz
Initial commit
Diffstat (limited to 'fbsplash.hook')
-rw-r--r--fbsplash.hook13
1 files changed, 13 insertions, 0 deletions
diff --git a/fbsplash.hook b/fbsplash.hook
new file mode 100644
index 000000000000..592a30fb133d
--- /dev/null
+++ b/fbsplash.hook
@@ -0,0 +1,13 @@
+#! /usr/bin/bash
+
+# Copies the splash image into the framebuffer device
+run_hook() {
+ local SPLASH_IMAGE="/etc/splash.fb"
+
+ if [ -f "${SPLASH_IMAGE}" ]; then
+ dd if=${SPLASH_IMAGE} of=/dev/fb0 2> /dev/null
+ else
+ echo "Cannot find ${SPLASH_IMAGE}."
+ echo "Did you include it in the \"BINARIES=...\" of your /etc/mkinitcpio.conf?"
+ fi
+}