aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/remove-theme6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/remove-theme b/scripts/remove-theme
index 9263b1b..728c810 100644
--- a/scripts/remove-theme
+++ b/scripts/remove-theme
@@ -36,5 +36,11 @@ function update_boot () {
fi
}
+if [ "$1" = Mandrakelinux ]; then
+ # in case we are upgrading mandrakelinux-theme to mandriva-theme
+ # "remove-theme Mandrakelinux" will be called thinking there is no theme anymore
+ grep -qi "THEME=Mandriva" $sysconfig && exit 0
+fi
+
remove_theme
update_boot