summaryrefslogtreecommitdiff
path: root/system/virtualbox-addons/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/virtualbox-addons/doinst.sh')
-rw-r--r--system/virtualbox-addons/doinst.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/virtualbox-addons/doinst.sh b/system/virtualbox-addons/doinst.sh
index e4d34e9ebd..9af312d442 100644
--- a/system/virtualbox-addons/doinst.sh
+++ b/system/virtualbox-addons/doinst.sh
@@ -23,12 +23,17 @@ preserve_perms() {
}
# Fix starting of kde within virtualbox
-cat << EOF >> usr/share/apps/kconf_update/kwin_blacklist.upd
+BLACKLIST="usr/share/apps/kconf_update/kwin_blacklist.upd"
+VBOX_TEST=$(grep -c "Blacklist-virtualbox" $BLACKLIST)
+
+if [ "$VBOX_TEST" = "0" ]; then
+cat << EOF >> $BLACKLIST
Id=Blacklist-virtualbox
Options=overwrite
File=kwinrc
Script=kwin_blacklist_vbox.sh,sh
EOF
+fi
preserve_perms etc/rc.d/rc.vboxadd.new
preserve_perms etc/rc.d/rc.vboxadd-service.new