diff options
Diffstat (limited to 'scripts/remove-theme')
-rw-r--r-- | scripts/remove-theme | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/scripts/remove-theme b/scripts/remove-theme index f7b8dde..97b4a05 100644 --- a/scripts/remove-theme +++ b/scripts/remove-theme @@ -31,20 +31,9 @@ function remove_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 remove-splash --kernel-version $(uname -r) fi - popd &> /dev/null } function usage () { |