aboutsummaryrefslogtreecommitdiffstats
path: root/initramfs-init.in
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-12-02 10:34:35 +0200
committerTimo Teräs <timo.teras@iki.fi>2014-12-02 10:34:35 +0200
commit2ec7750ef7d4c6a443b0fb04b1627efabb9d7c03 (patch)
tree68f047dac65dec94922be243834427b951ec0ba9 /initramfs-init.in
parent1f16a949870fd6a93835844aa91e075f9527c28e (diff)
downloadmkinitfs-2ec7750ef7d4c6a443b0fb04b1627efabb9d7c03.tar.bz2
mkinitfs-2ec7750ef7d4c6a443b0fb04b1627efabb9d7c03.tar.xz
init: fix splash fifo, and make config file optional
just having the fbsplash.ppm in boot media activates now splash.
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-xinitramfs-init.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index ecab5dd..6357965 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -677,9 +677,17 @@ if [ -f "$sysroot/etc/.default_boot_services" -o ! -f "$ovl" ]; then
rm -f "$sysroot/etc/.default_boot_services"
fi
-if [ "$KOPT_splash" != "no" -a -e $ALPINE_MNT/fbsplash.ppm -a -e $ALPINE_MNT/fbsplash.cfg ]; then
+if [ "$KOPT_splash" != "no" -a -e $ALPINE_MNT/fbsplash.ppm ]; then
+ local config
ebegin "Starting bootsplash (from $ALPINE_MNT)"
- setsid fbsplash -T 16 -s $ALPINE_MNT/fbsplash.ppm -i $ALPINE_MNT/fbsplash.cfg -f $sysroot/$splashfile &
+ mkfifo $sysroot/$splashfile
+ if [ -e $ALPINE_MNT/fbsplash.cfg ]; then
+ config=$ALPINE_MNT/fbsplash.cfg
+ else
+ config=/tmp/fbsplash.cfg
+ echo "IMAGE_ALIGN=CM" > $config
+ fi
+ setsid fbsplash -T 16 -s $ALPINE_MNT/fbsplash.ppm -i $config -f $sysroot/$splashfile &
eend 0
else
KOPT_splash="no"