VBoxServiceWrapper revision 2e79616cdb94a9f801a368bc0b31a6a7dc7f20dd
367N/A#!/bin/sh
367N/A#
367N/A# VBoxService wrapper script.
367N/A#
367N/A# Load required kernel extensions before start service (if necessary).
367N/A#
367N/A# Copyright (C) 2007-2013 Oracle Corporation
367N/A#
367N/A# This file is part of VirtualBox Open Source Edition (OSE), as
367N/A# available from http://www.virtualbox.org. This file is free software;
367N/A# you can redistribute it and/or modify it under the terms of the GNU
367N/A# General Public License (GPL) as published by the Free Software
367N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
367N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
367N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
367N/A#
367N/A
367N/Aexport PATH="/bin:/usr/bin:/sbin:/usr/sbin:$PATH"
367N/A
367N/Aecho "Check if kernel extensions loaded..."
367N/Aitems="VBoxGuest"
367N/Afor item in $items; do
3996N/A kext_item="org.virtualbox.kext.$item"
367N/A loaded=`kextstat | grep $kext_item`
367N/A if [ -z "$loaded" ] ; then
367N/A echo "Loading $item kernel extension..."
367N/A kextload /Library/Extensions/$item.kext
367N/A fi
367N/Adone
367N/A
618N/A"/Library/Application Support/VirtualBox Guest Additions/VBoxService" -f
367N/A
367N/Aexit $?
844N/A