aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/detect-resolution2
-rw-r--r--scripts/splash.sh4
-rwxr-xr-xscripts/switch-themes8
3 files changed, 8 insertions, 6 deletions
diff --git a/scripts/detect-resolution b/scripts/detect-resolution
index 66a92bd..4155613 100755
--- a/scripts/detect-resolution
+++ b/scripts/detect-resolution
@@ -54,6 +54,8 @@ sub parse_grub_conf {
$entry{$title}{partition} = $1;
$entry{$title}{kernel} = $2;
$entry{$title}{options} = $3;
+ $vga = $1 if /vga=(.*)/;
+ $entry{$title}{vga} = $vga if ($label and $vga);
}
$entry{$title}{initrd} = $1 if m/\s*initrd.*\)(.*)/;
}
diff --git a/scripts/splash.sh b/scripts/splash.sh
index 2417e7a..90ead3c 100644
--- a/scripts/splash.sh
+++ b/scripts/splash.sh
@@ -29,9 +29,9 @@ gprintf() {
# request translations to be always in UTF-8 with OUTPUT_CHARSET=UTF-8
if [ -x /bin/gettext -a -n "$1" ]; then
if [ -n "$GP_LANG" ]; then
- TEXT=`OUTPUT_CHARSET=UTF-8 LANGUAGE=$GP_LANG gettext -e --domain=$TEXTDOMAIN "$1"`
+ TEXT=`OUTPUT_CHARSET=UTF-8 LANGUAGE=$GP_LANG LANG=$LANGUAGE gettext -e --domain=$TEXTDOMAIN "$1"`
else
- TEXT=`OUTPUT_CHARSET=UTF-8 gettext -e --domain=$TEXTDOMAIN "$1"`
+ TEXT=`OUTPUT_CHARSET=UTF-8 LANG=$LANGUAGE gettext -e --domain=$TEXTDOMAIN "$1"`
fi
else
TEXT=$1
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