aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/switch-themes
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-09-04 18:42:38 +0000
committerFlorent Villard <warly@mandriva.com>2003-09-04 18:42:38 +0000
commite09c2acf70224a1c3a10a751dbb8b984448559eb (patch)
tree6ed5193fbaf98074f5a7cda820f80f94e1cf42c3 /scripts/switch-themes
parentf2277e5fb7eefc10511da223afe8ed20994ffc4f (diff)
downloadbootsplash-e09c2acf70224a1c3a10a751dbb8b984448559eb.tar
bootsplash-e09c2acf70224a1c3a10a751dbb8b984448559eb.tar.gz
bootsplash-e09c2acf70224a1c3a10a751dbb8b984448559eb.tar.bz2
bootsplash-e09c2acf70224a1c3a10a751dbb8b984448559eb.tar.xz
bootsplash-e09c2acf70224a1c3a10a751dbb8b984448559eb.zip
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
Diffstat (limited to 'scripts/switch-themes')
-rwxr-xr-xscripts/switch-themes8
1 files changed, 4 insertions, 4 deletions
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