diff options
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 () { |