blob: b152773502fd4953af48f688b4a6c3628a1c7d10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#! /usr/bin/bash
# Copies the splash image into the framebuffer device
run_hook() {
local FBDEV="/dev/fb0"
local SPLASH_IMAGE="/etc/splash.fb"
if [ -c "${FBDEV}" ]; then
if [ -f "${SPLASH_IMAGE}" ]; then
dd if="${SPLASH_IMAGE}" of="${FBDEV}" 2> /dev/null
else
echo "Cannot find ${SPLASH_IMAGE}."
echo "Did you include it in the \"FILES=...\" of your /etc/mkinitcpio.conf?"
fi
else
echo "Framebuffer device \"${FBDEV}\" is not present."
fi
}
|