From e09c2acf70224a1c3a10a751dbb8b984448559eb Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Thu, 4 Sep 2003 18:42:38 +0000 Subject: fix bad theme initialization if no theme defined 2.0.3 add grub resolution detection in detect-resolution try to fix i18n pb in splash.sh --- scripts/switch-themes | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/switch-themes') diff --git a/scripts/switch-themes b/scripts/switch-themes index df2cc7e..bec851a 100755 --- a/scripts/switch-themes +++ b/scripts/switch-themes @@ -23,7 +23,7 @@ function get_current_theme () { [[ $opt != THEME=* ]] && continue theme=${opt##*=} done < $sysconfig - [[ -z $theme ]] && theme="Mandrake" + #[[ -z $theme ]] && theme="Mandrake" echo $theme } @@ -101,9 +101,9 @@ function switch_theme () { echo "THEME=$toswitch" >> $sysconfig fi rm -f $tmpfile - if [[ -d /etc/bootsplash/$toswitch ]]; then - rm -f /etc/bootsplash/current - ln -s /etc/bootsplash/$toswitch current + if [[ -d /etc/bootsplash/themes/$toswitch ]]; then + rm -f /etc/bootsplash/themes/current + ln -s $toswitch /etc/bootsplash/themes/current fi fi lilo_switch_themes $toswitch -- cgit v1.2.1