Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/emulators/virtualbox-ose/files/patch-src-VBox-Installer-freebsd-VBox.sh
17364 views
1
--- src/VBox/Installer/freebsd/VBox.sh.orig 2016-08-27 05:10:34 UTC
2
+++ src/VBox/Installer/freebsd/VBox.sh
3
@@ -0,0 +1,67 @@
4
+#!/bin/sh
5
+#
6
+# Oracle VM VirtualBox startup script, FreeBSD hosts.
7
+#
8
+# Copyright (C) 2006-2012 Oracle Corporation
9
+#
10
+# This file is part of VirtualBox Open Source Edition (OSE), as
11
+# available from http://www.virtualbox.org. This file is free software;
12
+# you can redistribute it and/or modify it under the terms of the GNU
13
+# General Public License (GPL) as published by the Free Software
14
+# Foundation, in version 2 as it comes in the "COPYING" file of the
15
+# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16
+# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17
+#
18
+
19
+PATH="/usr/bin:/bin:/usr/sbin:/sbin"
20
+CONFIG="/usr/local/etc/vbox/vbox.cfg"
21
+
22
+test -r "${CONFIG}" &&
23
+ . "${CONFIG}"
24
+test -z "${INSTALL_DIR}" &&
25
+ if test -d /usr/local/lib/virtualbox &&
26
+ test -f /usr/local/lib/virtualbox/VBoxRT.so; then
27
+ INSTALL_DIR=/usr/local/lib/virtualbox
28
+ else
29
+ echo "Could not find VirtualBox installation. Please reinstall."
30
+ exit 1
31
+ fi
32
+
33
+# workaround for the KDE dialog problem
34
+KDE_FORK_SLAVES=1; export KDE_FORK_SLAVES
35
+
36
+APP=`basename $0`
37
+case "$APP" in
38
+ VirtualBox|virtualbox)
39
+ exec "$INSTALL_DIR/VirtualBox" "$@"
40
+ ;;
41
+ VirtualBoxVM|virtualboxvm)
42
+ exec "$INSTALL_DIR/VirtualBoxVM" "$@"
43
+ ;;
44
+ VBoxManage|vboxmanage)
45
+ exec "$INSTALL_DIR/VBoxManage" "$@"
46
+ ;;
47
+ VBoxSDL|vboxsdl)
48
+ exec "$INSTALL_DIR/VBoxSDL" "$@"
49
+ ;;
50
+ VBoxVRDP|VBoxHeadless|vboxheadless)
51
+ exec "$INSTALL_DIR/VBoxHeadless" "$@"
52
+ ;;
53
+ VBoxAutostart|vboxautostart)
54
+ exec "$INSTALL_DIR/VBoxAutostart" "$@"
55
+ ;;
56
+ VBoxBalloonCtrl|vboxballoonctrl)
57
+ exec "$INSTALL_DIR/VBoxBalloonCtrl" "$@"
58
+ ;;
59
+ VBoxBugReport|vboxbugreport)
60
+ exec "$INSTALL_DIR/VBoxBugReport" "$@"
61
+ ;;
62
+ vboxwebsrv)
63
+ exec "$INSTALL_DIR/vboxwebsrv" "$@"
64
+ ;;
65
+ *)
66
+ echo "Unknown application - $APP"
67
+ exit 1
68
+ ;;
69
+esac
70
+exit 0
71
72