- Timestamp:
- Oct 19, 2007 9:35:14 AM (17 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support/solaris
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/solaris/mod.sh
r5345 r5379 1 1 #!/bin/sh 2 set -x 3 # 4 # Figure out the environment and locations. 5 # 2 6 3 7 # Sudo isn't native solaris, but it's very convenient... … … 25 29 DIR=$script_dir/out/$BUILD_TARGET.$BUILD_TARGET_ARCH/$BUILD_TYPE/bin/ 26 30 31 VBOXDRV_CONF_DIR=/platform/i86pc/kernel/drv 27 32 if test "$BUILD_TARGET_ARCH" = "amd64"; then 28 VBOXDRV_ INS=/usr/kernel/drv/amd64/vboxdrv33 VBOXDRV_DIR=$VBOXDRV_CONF_DIR/amd64 29 34 else 30 VBOXDRV_ INS=/usr/kernel/drv/vboxdrv35 VBOXDRV_DIR=$VBOXDRV_CONF_DIR 31 36 fi 32 $(SUDO) cp $DIR/vboxdrv.o $VBOXDRV_INS 33 $(SUDO) cp $script_dir/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf /usr/kernel/drv/vboxdrv.conf 37 38 # 39 # Do the job. 40 # 41 $SUDO cp $DIR/vboxdrv.o $VBOXDRV_DIR/vboxdrv 42 $SUDO cp $script_dir/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf $VBOXDRV_CONF_DIR/vboxdrv.conf 34 43 old_id=`/usr/sbin/modinfo | grep vbox | cut -f 1 -d ' ' ` 35 44 if test -n "$old_id"; then … … 37 46 sync 38 47 sync 39 $ (SUDO)/usr/sbin/modunload -i $old_id48 $SUDO /usr/sbin/modunload -i $old_id 40 49 else 41 echo "* If it fails below, run: $ (SUDO)add_drv vboxdrv"50 echo "* If it fails below, run: $SUDO add_drv vboxdrv" 42 51 fi 43 52 echo "* loading vboxdrv..." 44 53 sync 45 54 sync 46 $ (SUDO) /usr/sbin/modload $VBOXDRV_INS55 $SUDO /usr/sbin/modload $VBOXDRV_DIR/vboxdrv 47 56 /usr/sbin/modinfo | grep vboxdrv 48 57 echo "* dmesg:" 49 58 dmesg | tail -20 50 $ (SUDO)chmod a+rw /devices/pseudo/vboxdrv*59 $SUDO chmod a+rw /devices/pseudo/vboxdrv* 51 60 -
trunk/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf
r3987 r5379 1 # 1 2 # VirtualBox OpenSolaris Driver Configuration 2 3 # 3 4 # Needs to go into /usr/kernel/drv along with the driver itself 5 4 # This needs to go into /platform/i86pc/kernel/drv, 5 # while the 64-bit driver object goes into the amd64 6 # subdirectory (32-bit drivers goes into the same 7 # directory). After copying execut add_drv vboxdrv. 8 # 6 9 name="vboxdrv" parent="pseudo" instance=0;
Note:
See TracChangeset
for help on using the changeset viewer.