diff options
-rw-r--r-- | bootsplash.spec | 2 | ||||
-rw-r--r-- | scripts/splash.sh | 4 | ||||
-rwxr-xr-x | scripts/switch-themes | 16 |
3 files changed, 12 insertions, 10 deletions
diff --git a/bootsplash.spec b/bootsplash.spec index 695c9be..8a34567 100644 --- a/bootsplash.spec +++ b/bootsplash.spec @@ -77,7 +77,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Sat Aug 16 2003 Pablo Saratxaga <pablo@mandrakesoft.com> 2.0.2-1mdk - added support for other fonts, depending on the language -- now themes are in packages provinding mandrake_theme +- now themes are in packages provinding mandrake_theme (warly) * Fri Aug 01 2003 Warly <warly@mandrakesoft.com> 2.0.1-2mdk - require to initscripts was not correct diff --git a/scripts/splash.sh b/scripts/splash.sh index d200b12..a6ccf2a 100644 --- a/scripts/splash.sh +++ b/scripts/splash.sh @@ -61,6 +61,10 @@ _silent="no" grep -q silent /proc/cmdline && _silent="yes" test "$runlevel" == "6" -o "$runlevel" == "0" && _shutdown="yes" +if [ "$1" == "verbose" ]; then + echo 'verbose' > /proc/splash +fi + if [ "$1" == "stop" -a $_shutdown == "no" ]; then if [[ $LOGO_CONSOLE == No ]] || [[ $LOGO_CONSOLE == no ]] || [[ $LOGO_CONSOLE == NO ]]; then if [[ -e /proc/splash ]];then diff --git a/scripts/switch-themes b/scripts/switch-themes index 273044c..df2cc7e 100755 --- a/scripts/switch-themes +++ b/scripts/switch-themes @@ -40,21 +40,18 @@ function lilo_switch_themes () { if [[ ! -f $message_from_theme ]];then return; fi - if [[ ! -e $bootdir/message ]];then - return; - fi #Make sure to point on lilo-graphic if [[ -L $bootdir/message ]];then point_to=$(read_link $bootdir/message) - if [[ $point_to != lilo-graphic ]];then + if [[ $point_to != message-graphic ]];then rm -f $bootdir/message - ln -s lilo-graphic $bootdir/message + ln -s message-graphic $bootdir/message fi fi if ! cmp -s $message_from_theme $message_from_current;then - cp -f $message_from_theme $message_from_current + cp -f $message_from_theme $bootdir/message-graphic fi } @@ -104,11 +101,12 @@ function switch_theme () { echo "THEME=$toswitch" >> $sysconfig fi rm -f $tmpfile - if [[ -d /etc/bootsplash/themes/$toswitch ]]; then - rm -f /etc/bootsplash/themes/current - ln -s /etc/bootsplash/themes/$toswitch current + if [[ -d /etc/bootsplash/$toswitch ]]; then + rm -f /etc/bootsplash/current + ln -s /etc/bootsplash/$toswitch current fi fi + lilo_switch_themes $toswitch } function update_boot () { |