summaryrefslogtreecommitdiff
path: root/system/virtualbox-addons/doinst.sh
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2012-09-18 23:09:11 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-18 19:34:05 -0500
commit4f49a394de722175db659831e0ebbea10fd1c22b (patch)
tree49015503148e8269bb3ae12d11682cca3e6ed153 /system/virtualbox-addons/doinst.sh
parentb210a8c79f12ae7f8c7d0971667f107c221bbd12 (diff)
downloadslackbuilds-4f49a394de722175db659831e0ebbea10fd1c22b.tar.gz
system/virtualbox-addons: Updated for version 4.2.0.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'system/virtualbox-addons/doinst.sh')
-rw-r--r--system/virtualbox-addons/doinst.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/virtualbox-addons/doinst.sh b/system/virtualbox-addons/doinst.sh
index 9af312d442..97afad9c3e 100644
--- a/system/virtualbox-addons/doinst.sh
+++ b/system/virtualbox-addons/doinst.sh
@@ -24,7 +24,12 @@ preserve_perms() {
# Fix starting of kde within virtualbox
BLACKLIST="usr/share/apps/kconf_update/kwin_blacklist.upd"
-VBOX_TEST=$(grep -c "Blacklist-virtualbox" $BLACKLIST)
+
+if [ -f "$BLACKLIST" ]; then
+ VBOX_TEST=$(grep -c "Blacklist-virtualbox" $BLACKLIST)
+else
+ VBOX_TEST="0"
+fi
if [ "$VBOX_TEST" = "0" ]; then
cat << EOF >> $BLACKLIST
@@ -38,8 +43,3 @@ fi
preserve_perms etc/rc.d/rc.vboxadd.new
preserve_perms etc/rc.d/rc.vboxadd-service.new
-# remove existing fdi cache to recognize newly installed fdi files
-# and restart hal to regenerate the cache
-rm -f var/cache/hald/fdi-cache
-chroot . /etc/rc.d/rc.hald restart
-