SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
#!/bin/bash
#
# rc.SPLASH-MASTER
#
# Unifica los antiguos scripts de bootsplash en un unico archivo.
# El presente script es el resultado de buscar optimizar y corregir
# los scripts *-WRAP de Slackware-Guides-Grafical Boot
# URL = http://wiki.linuxquestions.org/wiki/...Graphical_Boot
#
# Marcos R Orellana aka Avrah - 20/03/2016
# marcos.r.orellana@gmail.com
#
# Segun el nombre con el cual se inicie el script llama al script indicado.
case $0 in
*rc.S-splash)
script=/etc/rc.d/rc.S # Iniciar segun corresponda. Primer script de arranque.
;;
*rc.M-splash)
script=/etc/rc.d/rc.M # Iniciar segun corresponda. Segundo script de arranque.
;;
*rc.K-splash)
script=/etc/rc.d/rc.K
echo $0
;;
*rc.0-splash)
script=/etc/rc.d/rc.0 # Iniciar segun corresponda. Script de apagado.
;;
*rc.6-splash)
script=/etc/rc.d/rc.6 # Iniciar segun corresponda. Script de reinicio.
;;
esac
setterm -reset -msg off -cursor off -bold on # hide msg and set bold font
fbRes=$(fbset | grep -Po '".*"' | grep -Po '[^"].*[^"]') # get resolution from FrameBuffer
wallpaper="/boot/initrd-tree/bin/busybox fbsplash -s /boot/slackwarelinux-$fbRes.ppm &" # set wallpaper
$wallpaper # load wallpaper.
exec $script | # read info from init script
while read -r DATA; do # Lee los datos de entrada
#$wallpaper # force to reload wallpaper
mensaje="$DATA" # save data read.
ancho_mensaje=${#mensaje} # set wide msg.
centro_mensaje=$(($ancho_mensaje/2)) # center text
ancho_terminal=$(tput cols) # set wide screen
alto_terminal=$(tput lines) # set height screen
ini_linea_texto=$((($alto_terminal/4)*3)) # set cursor pos on 3/4 of screen.
centrar_texto="$ini_linea_texto $(( $(($ancho_terminal/2))-$centro_mensaje))" # center text.
tput cup $ini_linea_texto 0 && tput ed # delete screen and reset from cursor
tput cup $ini_linea_texto 5 && echo -en "Ejecutando: "${0%-*} # Optional, write name of script
tput cup $centrar_texto && echo -en $mensaje # show msg
tput cup $ini_linea_texto $(($ancho_terminal-10)) && echo "[ ok ]" # optional.
tput cup $(($ini_linea_texto+1)) 0 && tput ed # Set cursor pos end line
done
setterm -reset -cursor on # reset screen and show cursor.
exit 0
and this file with name genbootsplash (for example):
#
# System initialization (runs when system boots).
si:S:sysinit:/etc/rc.d/rc.S-splash
# Script to run when going single user (runlevel 1).
su:1S:wait:/etc/rc.d/rc.K-splash
# Script to run when going multi user.
rc:2345:wait:/etc/rc.d/rc.M-splash
# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Runlevel 0 halts the system.
l0:0:wait:/etc/rc.d/rc.0-splash
# Runlevel 6 reboots the system.
l6:6:wait:/etc/rc.d/rc.6-splash
add wallpaper in png format in /boot and rename slackwarelinux.png.
run mkinitrd and genbootsplash as root.
add your new initrd image and " quiet splash vga=791 loglevel=0 " in your lilo.conf or grub.cfg
Furthermore, a download link pointing to mega.nz ??? I am sure you can find a more trustworthy file host.
Also, you can not expect people to just blindly disable the rc.sysvinit process by running "chmod -x /etc/rc.d/rc.sysvinit" without any explanation why this would be necessary.
Also, if you use [code][/code] tags instead of [quote][/quote] tags, it will retain any indentation (or character spaces) in front of each line (since I'm assuming you had it formatted better initially).
Definitely an interesting concept. I'll be interested to read an English version of the script.
Also, if you use [code][/code] tags instead of tags, it will retain any indentation (or character spaces) in front of each line (since I'm assuming you had it formatted better initially).
Definitely an interesting concept. I'll be interested to read an English version of the script.
The concept of doing something that visually changes the Slackware boot, is nice. I like it when I see people tinkering with their Slackware.
However, look at the video. The screen shows every line of the boot process one by one and appends a meaningless "ok" at the end.
The result is that you will not be reading these flashing lines at all. The lack of proper context makes it no longer informational (except in a slow virtual machine perhaps).
I would say, either display the full boot text on a graphical backdrop, or hide the text altogether and display a progress bar instead.
Also, you can not expect people to just blindly disable the rc.sysvinit process by running "chmod -x /etc/rc.d/rc.sysvinit" without any explanation why this would be necessary.
If run rc.sysvinit show this error "stty standard input inappropriate ioctl for device", not is necessary deactivate script
I would say, either display the full boot text on a graphical backdrop, or hide the text altogether and display a progress bar instead.
If set kernel parameters with quiet loglevel=0 console=/dev/tty12 (for example) in bootloader config obtain complete silence boot.
Only mod /boot/initrd-tree/bin/busybox fbsplash -i configfile and delete innecesary code.
As I side opinion, I liked what I saw in the video, except for the messages, I also agree they are useless, but have them on another tty as they are in slackware right now would be much better. Of course a progress bar is needed, can be made of anything like # or + or * or whatever too
Now that we have PA why not try to add a bootsplash by default on a modern distro like we are right now
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.