diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-06-29 04:54:42 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-06-29 04:54:42 +0000 |
commit | c535eabfd26a1927fc87adb9250e277e19a66c3c (patch) | |
tree | 8ce547511eaa626bcf81cea1fc76a6bcb8d6df7a /scripts/switch-themes | |
parent | 74e685503f350d91b3a7f72cc56c2d6b0e73fe52 (diff) | |
download | bootsplash-c535eabfd26a1927fc87adb9250e277e19a66c3c.tar bootsplash-c535eabfd26a1927fc87adb9250e277e19a66c3c.tar.gz bootsplash-c535eabfd26a1927fc87adb9250e277e19a66c3c.tar.bz2 bootsplash-c535eabfd26a1927fc87adb9250e277e19a66c3c.tar.xz bootsplash-c535eabfd26a1927fc87adb9250e277e19a66c3c.zip |
- add scripts/remove-boot-splash so we can modify a bootsplash
from an initrd without having to rebuild it
- make-boot-splash doesn't try to detect the resolution anymore,
it now needs to be given one
- in switch-themes and remove-theme, use bootloader-config to update the bootloader
- remove detect-resolution
- requires new mkinitrd (old mkinitrd used detect-resolution)
- remove "Patch: glibc-fixed-header.tar.bz2" which is unused (and not in CVS)
Diffstat (limited to 'scripts/switch-themes')
-rwxr-xr-x | scripts/switch-themes | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/scripts/switch-themes b/scripts/switch-themes index 7101954..22676e4 100755 --- a/scripts/switch-themes +++ b/scripts/switch-themes @@ -109,20 +109,9 @@ function switch_theme () { } function update_boot () { - pushd /boot &> /dev/null - if [[ -x /usr/share/loader/make-initrd ]]; then - /usr/share/loader/make-initrd -n &> /dev/null - if [[ -x /usr/sbin/detectloader ]]; then - LOADER=$(/usr/sbin/detectloader -q) - if [[ $LOADER = "LILO" ]] && [[ -x /sbin/lilo ]];then - /sbin/lilo >/dev/null 2>/dev/null - fi - if [[ $LOADER = "YABOOT" ]] && [[ -x /sbin/ybin ]];then - /sbin/ybin >/dev/null 2>/dev/null - fi - fi + if [[ -x /usr/bin/bootloader-config ]]; then + /usr/bin/bootloader-config --action update-splash --kernel-version $(uname -r) fi - popd &> /dev/null } function usage () { |