VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/Support/solaris/mod.sh@ 5166

Last change on this file since 5166 was 4835, checked in by vboxsync, 18 years ago

a quick hack.

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Id Revision
File size: 1.0 KB
Line 
1#!/bin/sh
2
3
4
5script_dir=`dirname "$0"`
6# src/VBox/HostDrivers/solaris/ residence:
7script_dir=`cd "$script_dir/../../../../.." ; /bin/pwd`
8## root residence:
9#script_dir=`cd "$script_dir" ; /bin/pwd`
10
11set -e
12if test -z "$BUILD_TARGET"; then
13 export BUILD_TARGET=solaris
14fi
15if test -z "$BUILD_TARGET_ARCH"; then
16 export BUILD_TARGET_ARCH=x86
17fi
18if test -z "$BUILD_TYPE"; then
19 export BUILD_TYPE=debug
20fi
21
22DIR=$script_dir/out/$BUILD_TARGET.$BUILD_TARGET_ARCH/$BUILD_TYPE/bin/
23
24sudo cp $DIR/vboxdrv.o /usr/kernel/drv/vboxdrv
25sudo cp $script_dir/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf /usr/kernel/drv/vboxdrv.conf
26old_id=`/usr/sbin/modinfo | grep vbox | cut -f 1 -d ' ' `
27if test -n "$old_id"; then
28 echo "* unloading $old_id..."
29 sync
30 sync
31 sudo /usr/sbin/modunload -i $old_id
32else
33 echo "* If it fails below, run: sudo add_drv vboxdrv"
34fi
35echo "* loading vboxdrv..."
36sync
37sync
38sudo /usr/sbin/modload /usr/kernel/drv/vboxdrv
39/usr/sbin/modinfo | grep vboxdrv
40echo "* dmesg:"
41dmesg | tail -20
42sudo chmod a+rw /devices/pseudo/vboxdrv*
43
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette