ALT Linux Bugzilla
– Attachment 776 Details for
Bug 6300
перенести splash_update "$subsys" выше проверки на запускаемость
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
old version of splash functions
functions (text/plain), 1.72 KB, created by
Dmitry V. Levin
on 2005-03-22 15:43:08 MSK
(
hide
)
Description:
old version of splash functions
Filename:
MIME Type:
Creator:
Dmitry V. Levin
Created:
2005-03-22 15:43:08 MSK
Size:
1.72 KB
patch
obsolete
>splash_init() { > local splash_exe=/sbin/splash.sh splash_config=/etc/bootsplash/splash_themes > [ -x $splash_exe -a -e /proc/splash ] && > ! grep -iwqs off /proc/splash || > return 0 > SourceIfNotEmpty /etc/sysconfig/bootsplash || return > > [ -z "$SPLASH" ] && splash_rc= || splash_rc="$SPLASH" > [ -z "$THEME" ] && splash_theme= || splash_theme="$THEME" > > [ -n "$splash_theme" -a -d "$splash_config" ] && is_yes "$splash_rc" || return > [ -d "$splash_config/$splash_theme" ] || splash_theme=current > [ -d "$splash_config/$splash_theme" ] || return > > splash_res=`fbresolution` || return > local saved_logo="$LOGO_CONSOLE" > local cfgfile="$splash_config/$splash_theme/config/bootsplash-$splash_res.cfg" > if [ -s "$cfgfile" ]; then > box() { :; } # ignore box descriptions in the config file > . "$cfgfile" > unset box > fi > > [ "$saved_logo" = "theme" ] || LOGO_CONSOLE="$saved_logo" > > if [ -z "$1" ]; then > set `/sbin/runlevel` > local previous="$1" runlevel="$2" > else > local previous=N runlevel="$1" > fi > > # number of steps in rc.sysinit, could be adjusted > if [ "$previous" = "N" ]; then > [ -n "$splash_nservices" ] || splash_nservices=8 > [ -n "$splash_progress" ] || splash_progress=7 > else > splash_nservices=0 > fi > > local i > for i in "/etc/rc.d/rc$runlevel.d"/S*; do > [ -x "$1" ] || continue > [ "${1%.rpm*}" = "$1" -a "${1%\~}" = "$1" ] || continue > : $((splash_nservices++)) > done > : $((splash_nservices++)) > > export splash_nservices splash_progress splash_rc splash_res splash_theme > export text_color text_size text_x text_y LOGO_CONSOLE >} > >splash_update() { > is_yes "$splash_rc" || return 0 > # splash_rc name [progress] > if [ -n "$2" ]; then > splash_progress=$2 > else > : $((splash_progress++)) > fi > > local splash_exe=/sbin/splash.sh > $splash_exe "$1" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6300
: 776