Index: /trunk/src/VBox/Installer/solaris/vboxconfig.sh
===================================================================
--- /trunk/src/VBox/Installer/solaris/vboxconfig.sh	(revision 26758)
+++ /trunk/src/VBox/Installer/solaris/vboxconfig.sh	(revision 26759)
@@ -30,4 +30,5 @@
 
 DIR_VBOXBASE=/opt/VirtualBox
+DIR_CONF="/platform/i86pc/kernel/drv"
 DIR_MOD_32="/platform/i86pc/kernel/drv"
 DIR_MOD_64=$DIR_MOD_32/amd64
@@ -367,15 +368,15 @@
     if test $? -eq 0 && test -h "/dev/vboxdrv"; then
 
-        if test -f /platform/i86pc/kernel/drv/vboxnet.conf; then
+        if test -f "$DIR_CONF/vboxnet.conf"; then
             add_driver "$MOD_VBOXNET" "$DESC_VBOXNET" "$FATALOP"
             load_module "drv/$MOD_VBOXNET" "$DESC_VBOXNET" "$FATALOP"
         fi
 
-        if test -f /platform/i86pc/kernel/drv/vboxflt.conf; then
+        if test -f "$DIR_CONF/vboxflt.conf"; then
             add_driver "$MOD_VBOXFLT" "$DESC_VBOXFLT" "$FATALOP"
             load_module "drv/$MOD_VBOXFLT" "$DESC_VBOXFLT" "$FATALOP"
         fi
 
-        if test -f /platform/i86pc/kernel/drv/vboxusbmon.conf && test "$HOST_OS_MAJORVERSION" != "5.10"; then
+        if test -f "$DIR_CONF/vboxusbmon.conf" && test "$HOST_OS_MAJORVERSION" != "5.10"; then
             # For VirtualBox 3.1 the new USB code requires Nevada > 123
             if test "$HOST_OS_MINORVERSION" -gt 123; then
@@ -399,5 +400,5 @@
                 # USB device to attach to now (it's done at runtime) it will fail to attach so
                 # redirect attaching failure output to /dev/null
-                if test -f /platform/i86pc/kernel/drv/vboxusb.conf; then
+                if test -f "$DIR_CONF/vboxusb.conf"; then
                     add_driver "$MOD_VBOXUSB" "$DESC_VBOXUSB" "$FATALOP" "$NULLOP"
                     load_module "drv/$MOD_VBOXUSB" "$DESC_VBOXUSB" "$FATALOP"
@@ -572,5 +573,5 @@
 
     if test "$?" -eq 0; then
-        if test -f /platform/i86pc/kernel/drv/vboxnet.conf; then
+        if test -f "$DIR_CONF/vboxnet.conf"; then
             # nwam/dhcpagent fix
             nwamfile=/etc/nwam/llp
@@ -700,5 +701,5 @@
 do
     case "$1" in
-        --postinstall | --preremove | --installdrivers | --removedrivers)
+        --postinstall | --preremove | --installdrivers | --removedrivers | --setupdrivers)
             drvop="$1"
             ;;
@@ -711,4 +712,8 @@
         --ips)
             ISIPS="$IPSOP"
+            ;;
+        --altkerndir)
+            # Use alternate kernel driver config folder (dev only)
+            DIR_CONF="/usr/kernel/drv"
             ;;
         *)
@@ -734,4 +739,8 @@
     remove_drivers "$fatal"
     ;;
+--setupdrivers)
+    remove_drivers "$fatal"
+    install_drivers
+    ;;
 *)
     errorprint "Invalid operation $drvop"
