Path: blob/main/emulators/virtualbox-ose/files/patch-src-VBox-Installer-freebsd-VBox.sh
17364 views
--- src/VBox/Installer/freebsd/VBox.sh.orig 2016-08-27 05:10:34 UTC1+++ src/VBox/Installer/freebsd/VBox.sh2@@ -0,0 +1,67 @@3+#!/bin/sh4+#5+# Oracle VM VirtualBox startup script, FreeBSD hosts.6+#7+# Copyright (C) 2006-2012 Oracle Corporation8+#9+# This file is part of VirtualBox Open Source Edition (OSE), as10+# available from http://www.virtualbox.org. This file is free software;11+# you can redistribute it and/or modify it under the terms of the GNU12+# General Public License (GPL) as published by the Free Software13+# Foundation, in version 2 as it comes in the "COPYING" file of the14+# VirtualBox OSE distribution. VirtualBox OSE is distributed in the15+# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.16+#17+18+PATH="/usr/bin:/bin:/usr/sbin:/sbin"19+CONFIG="/usr/local/etc/vbox/vbox.cfg"20+21+test -r "${CONFIG}" &&22+ . "${CONFIG}"23+test -z "${INSTALL_DIR}" &&24+ if test -d /usr/local/lib/virtualbox &&25+ test -f /usr/local/lib/virtualbox/VBoxRT.so; then26+ INSTALL_DIR=/usr/local/lib/virtualbox27+ else28+ echo "Could not find VirtualBox installation. Please reinstall."29+ exit 130+ fi31+32+# workaround for the KDE dialog problem33+KDE_FORK_SLAVES=1; export KDE_FORK_SLAVES34+35+APP=`basename $0`36+case "$APP" in37+ VirtualBox|virtualbox)38+ exec "$INSTALL_DIR/VirtualBox" "$@"39+ ;;40+ VirtualBoxVM|virtualboxvm)41+ exec "$INSTALL_DIR/VirtualBoxVM" "$@"42+ ;;43+ VBoxManage|vboxmanage)44+ exec "$INSTALL_DIR/VBoxManage" "$@"45+ ;;46+ VBoxSDL|vboxsdl)47+ exec "$INSTALL_DIR/VBoxSDL" "$@"48+ ;;49+ VBoxVRDP|VBoxHeadless|vboxheadless)50+ exec "$INSTALL_DIR/VBoxHeadless" "$@"51+ ;;52+ VBoxAutostart|vboxautostart)53+ exec "$INSTALL_DIR/VBoxAutostart" "$@"54+ ;;55+ VBoxBalloonCtrl|vboxballoonctrl)56+ exec "$INSTALL_DIR/VBoxBalloonCtrl" "$@"57+ ;;58+ VBoxBugReport|vboxbugreport)59+ exec "$INSTALL_DIR/VBoxBugReport" "$@"60+ ;;61+ vboxwebsrv)62+ exec "$INSTALL_DIR/vboxwebsrv" "$@"63+ ;;64+ *)65+ echo "Unknown application - $APP"66+ exit 167+ ;;68+esac69+exit 0707172