# HG changeset patch # User Christophe Lincoln # Date 1298593265 -3600 # Node ID 35d59233d7362727a66f20e8f3cd9a21a44bec51 # Parent 56c7da3f323e3c93ab24100e2a53c9f0ef0e88e1 Let have a full graphical boot in option diff -r 56c7da3f323e -r 35d59233d736 etc/init.d/rcS --- a/etc/init.d/rcS Thu Feb 24 22:05:12 2011 +0100 +++ b/etc/init.d/rcS Fri Feb 25 01:21:05 2011 +0100 @@ -11,6 +11,15 @@ # Boot time. bootdate=`date +%s` +# Graphical boot start. +if [ "$FBSPLASH" == "yes" ]; then + reset && fbsplash -c \ + -s /etc/fbsplash/$FBSPLASH_THEME/fbsplash.ppm \ + -i /etc/fbsplash/$FBSPLASH_THEME/fbsplash.cfg \ + -f /etc/fbsplash/fifo & + echo "0" > /etc/fbsplash/fifo +fi + if [ "$1" != "logged" ]; then # logged echo "Processing /etc/init.d/rcS..." @@ -20,6 +29,8 @@ /bin/mount proc status +[ "$FBSPLASH" == "yes" ] && echo "10" > /etc/fbsplash/fifo + # Parse cmdline args for earlier boot options. All other boot options # are in /etc/init./bootopts.sh. echo -n "Searching for early boot options..." @@ -40,12 +51,14 @@ done status +[ "$FBSPLASH" == "yes" ] && echo "20" > /etc/fbsplash/fifo + # Trigger Udev and handle hotplug events if [ "$UDEV" = "yes" ]; then echo -n "Udevadm requesting events from the Kernel..." udevadm trigger status - echo -n "Using udev daemon for hotplugging..." + echo -n "Using Udev for hotplugging..." echo "/sbin/udevd" > /proc/sys/kernel/hotplug status fi @@ -65,6 +78,8 @@ echo "Remounting rootfs read/write..." /bin/mount -o remount,rw / +[ "$FBSPLASH" == "yes" ] && echo "30" > /etc/fbsplash/fifo + # Mount filesystems in /etc/fstab. echo "Mounting filesystems in fstab..." /bin/mount -a @@ -89,6 +104,8 @@ status fi +[ "$FBSPLASH" == "yes" ] && echo "40" > /etc/fbsplash/fifo + # Set up tmp X11 and ICE dir. echo -n "Setting up tmp X11 and ICE unix dir..." /bin/mkdir -p /tmp/.X11-unix /tmp/.ICE-unix @@ -135,6 +152,8 @@ status fi +[ "$FBSPLASH" == "yes" ] && echo "50" > /etc/fbsplash/fifo + # Handle kernel cmdline parameter modprobe= if [ -n "$MODPROBE" ]; then MODULES=`sed -e 's/.* modprobe=\([^ ]*\).*/\1/' -e 's/,/\n/g' < /proc/cmdline` @@ -177,6 +196,8 @@ status fi +[ "$FBSPLASH" == "yes" ] && echo "60" > /etc/fbsplash/fifo + # Start syslogd and klogd. if [ "$KERNEL_LOG_DAEMONS" = "yes" ]; then echo -n "Starting system log deamon: syslogd..." @@ -198,6 +219,8 @@ # Be quiet on configuration to avoid messages overwriting ncurses dialog echo "0 0 0 0" > /proc/sys/kernel/printk +[ "$FBSPLASH" == "yes" ] && echo "70" > /etc/fbsplash/fifo + # Detect PCI and USB devices with Tazhw from slitaz-tools. We load # kernel modules only at first boot or in LiveCD mode. if [ ! -s /var/lib/detected-modules ]; then @@ -221,6 +244,8 @@ fi done +[ "$FBSPLASH" == "yes" ] && echo "80" > /etc/fbsplash/fifo + # Re-source main config file. In Live mode, daemons list can be modified # by boot options (screen=text will remove slim). . /etc/rcS.conf @@ -234,6 +259,8 @@ fi done +[ "$FBSPLASH" == "yes" ] && echo "90" > /etc/fbsplash/fifo + # Back to a verbose mode. echo "7 4 1 7" > /proc/sys/kernel/printk @@ -243,9 +270,12 @@ echo -e "\033[1m$MESSAGE\033[0m" fi +[ "$FBSPLASH" == "yes" ] && echo "100" > /etc/fbsplash/fifo + # Display and log boot time. time=$((`date +%s` - $bootdate)) echo $time > /var/log/boot-time echo "SliTaz boot time: ${time}s" +[ "$FBSPLASH" == "yes" ] && echo "exit" > /etc/fbsplash/fifo fi # logged diff -r 56c7da3f323e -r 35d59233d736 etc/rcS.conf --- a/etc/rcS.conf Thu Feb 24 22:05:12 2011 +0100 +++ b/etc/rcS.conf Fri Feb 25 01:21:05 2011 +0100 @@ -18,6 +18,10 @@ # then dbus, hald and slim can be removed from RUN_DAEMONS. FAST_BOOT_X="no" +# Graphical boot with fbsplash (To easily configure use: tazfbsplash) +FBSPLASH="no" +FBSPLASH_THEME="slitaz" + # Start Kernel log daemons (syslogd and klogd). KERNEL_LOG_DAEMONS="yes" SYSLOGD_ROTATED_SIZE="60"