CODE: Code maturity level options ---> [*] Prompt for development and/or incomplete code/drivers Processor type and features ---> [*] MTRR (Memory Type Range Register) support Block Devices -> [*] Loopback device support [*] RAM disk support (4096) Default RAM disk size [*] Initial RAM disk (initrd) support Console Drivers -> [*] VGA text console [*] Video mode selection support Console Drivers -> Frame-buffer support -> [*] Support for frame buffer devices [*] VESA VGA graphics console [*] Use splash screen instead of boot logo |
CODE: Code maturity level options ---> [*] Prompt for development and/or incomplete code/drivers Processor type and features ---> [*] MTRR (Memory Type Range Register) support Device Drivers ---> Block devices ---> <*> Loopback device support <*> RAM disk support (4096) Default RAM disk size [*] Initial RAM disk (initrd) support Graphics support ---> [*] Support for frame buffer devices [*] VESA VGA graphics support Console display driver support ---> [*] Video mode selection support <*> Framebuffer Console support Bootsplash configuration ---> [*] Bootup splash screen |
CODE: a> make mkproper 清除舊的設定 b> make dep 產生依賴 c> make bzImage 編譯內核 d> make modules modules_install 編譯模塊 e> cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage-2.4.20 |
CODE: # tar jxvf /patch/bootsplash-3.0.7.tar.bz2 # tar jxvf /patch/Theme-NewLinux.tar.bz2 # cd bootsplash-3.0.7/Utilities # make all # cp fbmngplay fbresolution fbtruetype splash /sbin # cd ../../ |
CODE: # mkdir /etc/bootsplash # mkdir /etc/bootsplash/themes # cp -a NewLinux /etc/bootsplash/themes/ |
CODE: # This is the configuration file for the 800x600 bootsplash picture. # # This file is necessary to specify the coordinates of the text box on # the splash screen. # # Comments are welcome by oliver@dediziert.org # config file version version=3 # should the picture be displayed? state=1 # fgcolor is the text forground color. # bgcolor is the text background (i.e. transparent) color. fgcolor=7 bgcolor=0 # (tx, ty) are the (x, y) coordinates of the text window in pixels. # tw/th is the width/height of the text window in pixels. tx=0 ty=0 tw=800 th=600 ####predefine area for the text info text_x=260 text_y=545 text_size=20 text_color=0xeef4ff #### # name of the picture file (full path recommended) jpeg=/etc/bootsplash/themes/NewLinux/images/bootsplash-800x600.jpg silentjpeg=/etc/bootsplash/themes/NewLinux/images/silent-800x600.jpg progress_enable=1 # background box silent noover 160 520 642 538 #00000050 box silent inter 160 520 160 537 #b77200 #b77200 #f2b700 #f2b700 box silent 160 520 642 538 #b77200 #b77200 #f2b700 #f2b700 # black border box silent 160 520 642 520 #b5b5b5 box silent 160 538 642 538 #b5b5b5 box silent 160 520 160 538 #b5b5b5 box silent 642 520 642 538 #b5b5b5 overpaintok=1 |
CODE: #!/bin/bash # # splash.sh - This shell script triggers bootsplash actions during # system boot/shutdown. It can be run by the init scripts repeatedly # specifying the currently executed system script. # #rewrite this script at the base of offered by http://www.bootsplash.org #line with ### added by me _procsplash="`cat /proc/splash 2>/dev/null`" ###give the variable "THEME" the name of the directory which the current ###silent mode picture stored THEME="NewLinux" test ! -d "/etc/bootsplash/themes/$THEME" && exit 0 # assertions test -r /proc/splash || exit 0 test -z "`echo $_procsplash|grep on`" && exit 0 ####"Yast" is a utilies for SuSE Linux,no for RedHat Linux ####maybe we can erase it test "$1" == "bootnetwork stop" -o "$1" == "YaST" && exit 0 # no progress # We chose verbose in grub test "`cat /proc/cmdline |grep \"splash=silent\"`" == "" && exit 0 if [ "$PREVLEVEL" == "3" -o "$PREVLEVEL" == "5" ]; then ###no below ,no silent mode when shutting down if [ "$RUNLEVEL" = "3" -o "$RUNLEVEL" == "5" ]; then exit 0 fi ### but why ? fi # acquire data # _shutdown="no" _silent="no" test "`cat /proc/splash |grep silent`" && _silent="yes" test "$RUNLEVEL" == "6" -o "$RUNLEVEL" == "0" && _shutdown="yes" test -f "/etc/bootsplash/themes/$THEME/config/bootsplash-`fbresolution`.cfg" && \ . /etc/bootsplash/themes/$THEME/config/bootsplash-`fbresolution`.cfg # # Print text string. (Booting/Shutting down the system. Press # F2 for verbose mode) # ###switch to slient mode when shutdown or reboot the system test "$_shutdown" == "yes" && ( echo "silent" >/proc/splash; chvt 1) ###print infomation at the area predifined by config file "bootsplash-800x600.cfg" _boot="Booting"; test "$_shutdown" == "yes" && _boot="Shutting down" ###is the area for infomation defined? yes ,print info, no,run on if [ "$text_x" != "" -a "$text_y" != "" \ -a "$text_color" != "" -a "$text_size" != "" -a "$_silent" == "yes" ]; then fbtruetype -x $text_x -y $text_y -t $text_color -s $text_size \ "$_boot the system ..." fi |
CODE: #! /bin/bash # # rc This file is responsible for starting/stopping # services when the runlevel changes. # # Original Author: # Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org> # # check a file to be a correct runlevel script ###########################Bootsplash start############## ####function progressbar function progressbar () { _progress=$1 _num=$num echo show "$(( 65534*($_progress + 1)/$_num ))">/proc/splash 2>/dev/null } ####end fuction ##########################Bootsplash End############### check_runlevel () { # Check if the file exists at all. [ -x "$1" ] || return 1 # Reject backup files and files generated by rpm. case "$1" in *.rpmsave|*.rpmorig|*.rpmnew|*~|*.orig) return 1 ;; esac return 0 } # Now find out what the current and what the previous runlevel are. argv1="$1" set `/sbin/runlevel` runlevel=$2 previous=$1 export runlevel previous . /etc/init.d/functions # See if we want to be in user confirmation mode if [ "$previous" = "N" ]; then if [ -f /var/run/confirm ] \ || grep -i confirm /proc/cmdline >/dev/null; then rm -f /var/run/confirm CONFIRM=yes export CONFIRM echo $"Entering interactive startup" else echo $"Entering non-interactive startup" fi fi # Get first argument. Set new runlevel to this argument. [ -n "$argv1" ] && runlevel="$argv1" ####################Bootsplash start############### progress=0 num=0 ###count the services for progressbar for countservices in /etc/rc$runlevel.d/*;do num=$(( $num + 1 )) done ###################Bootsplash End################## # Is there an rc directory for this new runlevel? [ -d /etc/rc$runlevel.d ] || exit 0 # First, run the KILL scripts. for i in /etc/rc$runlevel.d/K*; do ###################Bootsplash start################# progress=$(( $progress + 1 )) /etc/rc.d/splash.sh 2>/dev/null progressbar $progress ##################Bootsplash End#################### check_runlevel "$i" || continue # Check if the subsystem is already up. subsys=${i#/etc/rc$runlevel.d/K??} [ -f /var/lock/subsys/$subsys -o -f /var/lock/subsys/$subsys.init ] \ || continue # Bring the subsystem down. if egrep -q "(killproc |action )" $i; then $i stop else action $"Stopping $subsys: " $i stop fi done # Now run the START scripts. for i in /etc/rc$runlevel.d/S*; do ###################Bootsplash start################# progress=$(( $progress + 1 )) /etc/rc.d/splash.sh 2>/dev/null progressbar $progress ##################Bootsplash End#################### check_runlevel "$i" || continue # Check if the subsystem is already up. subsys=${i#/etc/rc$runlevel.d/S??} [ -f /var/lock/subsys/$subsys -o -f /var/lock/subsys/$subsys.init ] \ && continue # If we』re in confirmation mode, get user confirmation if [ -n "$CONFIRM" ]; then confirm $subsys case $? in 0) :;; 2) CONFIRM=;; *) continue;; esac fi # Bring the subsystem up. if [ "$subsys" = "halt" -o "$subsys" = "reboot" ]; then export LC_ALL=C exec $i start fi if egrep -q "(daemon |action |success |failure )" $i 2>/dev/null \ || [ "$subsys" = "single" -o "$subsys" = "local" ]; then $i start else action $"Starting $subsys: " $i start fi done |
CODE: title Red Hat Linux (2.4.20+bootsplash) root (hd0,0) kernel /bzImage-2.4.20 ro root=/dev/hda3 vga=788 splash=silent initrd /initrd-splash.img title Red Hat Linux (2.4.23) root (hd0,0) kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ initrd /initrd-2.4.20-8.img |
[火星人 ] 用bootsplash製作Linux全圖形啟動界面已經有609次圍觀