diff options
Diffstat (limited to 'scripts/switch-themes')
-rwxr-xr-x | scripts/switch-themes | 8 |
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 |