busybox-initramfs: use splashutils instead busybox's fbsplash

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-02-23 03:16:54 +01:00
parent 36012b73a9
commit b45628754b

View File

@ -92,22 +92,21 @@ NFS_OVERLAY="192.168.1.1:/var/lib/overlay"
} }
show_splash() { show_splash() {
if [ ! -e /dev/fb0 ]; then if [ ! -e /dev/fb0 -a ! -d /etc/splash ]; then
SPLASH=no
fi
if [ -f /flash/oemsplash.ppm ]; then
SPLASHIMAGE="/flash/oemsplash.ppm"
elif [ -f /splash/splash.ppm ]; then
SPLASHIMAGE="/splash/splash.ppm"
else
SPLASH=no SPLASH=no
fi fi
if [ "$SPLASH" = "no" ]; then if [ "$SPLASH" = "no" ]; then
break break
else else
/bin/busybox fbsplash -c -s "$SPLASHIMAGE" -d /dev/fb0 mkdir -p /run/splash/cache
/bin/fbsplashd --theme=openelec --type=bootup
echo "set tty silent 2" > /run/splash/cache/.splash
echo "set tty verbose 6" > /run/splash/cache/.splash
echo "set mode silent" > /run/splash/cache/.splash
echo "repaint" > /run/splash/cache/.splash
chvt 2
fi fi
} }
@ -202,14 +201,12 @@ NFS_OVERLAY="192.168.1.1:/var/lib/overlay"
} }
mount_disk() { mount_disk() {
# deal with hfs partitions # deal with hfs partitions
if [ -x /sbin/fsck_hfs ]; then if [ -x /sbin/fsck_hfs ]; then
hfsdiskprep hfsdiskprep
fi fi
mount_part "$boot" "/flash" "ro,noatime" mount_part "$boot" "/flash" "ro,noatime"
show_splash
if [ -n "$disk" ]; then if [ -n "$disk" ]; then
mount_part "$disk" "/storage" "rw,noatime" mount_part "$disk" "/storage" "rw,noatime"
@ -243,6 +240,7 @@ NFS_OVERLAY="192.168.1.1:/var/lib/overlay"
fi fi
} }
show_splash
if [ -z "$NETBOOT" ]; then if [ -z "$NETBOOT" ]; then
mount_disk mount_disk
else else
@ -255,6 +253,7 @@ NFS_OVERLAY="192.168.1.1:/var/lib/overlay"
/bin/busybox mount --move /sys /sysroot/sys /bin/busybox mount --move /sys /sysroot/sys
# switch to new sysroot and start real init # switch to new sysroot and start real init
echo "exit staysilent" > /run/splash/cache/.splash
exec /bin/busybox switch_root /sysroot /sbin/init exec /bin/busybox switch_root /sysroot /sbin/init
error "INIT_3" "Error in initramfs. Could not switch to new root" error "INIT_3" "Error in initramfs. Could not switch to new root"