loadall.sh revision f1f6e30384d272a6f3a11319ca79429e4d8e3df0
## @file
# For development, loads all the host drivers.
#
#
# Copyright (C) 2010-2014 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
fi
if [ ! -d "${MY_DIR}" ]; then
echo "Cannot find ${MY_DIR} or it's not a directory..."
exit 1;
fi
set -e
cd "$MY_DIR"
set +e
#
# Query the status of the drivers.
#
do
-e 's/ */ /g' \
-e 's/^ *//g' \
-e 's/ *$//g' \
`
echo "loadall.sh: $drv - $STATE"
else
echo "loadall.sh: $drv - not configured, probably."
fi
done
set -e
set -x
#
# Invoke the uninstallers.
#
for uninst in NetAdpUninstall.exe NetAdp6Uninstall.exe USBUninstall.exe NetFltUninstall.exe NetLwfUninstall.exe SUPUninstall.exe;
do
fi
done
#
# Invoke the installers.
#
if test "$1" != "-u" -a "$1" != "--uninstall"; then
case "$VER" in
6.*|10.*|11.*|12.*)
INSTALLERS="$INSTALLERS NetLwfInstall.exe"; #NetAdp6Install.exe - also busted?
;;
*)
INSTALLERS="$INSTALLERS NetFltInstall.exe"; #NetAdpInstall.exe; - busted
;;
esac
for inst in $INSTALLERS;
do
if test -f ${MY_DIR}/$inst; then
${MY_DIR}/$inst
fi
done
fi
echo "loadall.sh: Successfully installed all drivers"
exit 0