- Timestamp:
- Mar 10, 2009 3:19:09 PM (16 years ago)
- Location:
- trunk/src/VBox/Installer/solaris
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/Makefile.kmk
r17568 r17638 137 137 vboxdrv \ 138 138 $(if $(VBOX_WITH_NETFLT),vboxflt,) \ 139 $(if $(VBOX_WITH_USB),vboxusb ,) \139 $(if $(VBOX_WITH_USB),vboxusbmon,) \ 140 140 VBoxDD.so \ 141 141 VBoxDD2.so \ … … 204 204 vboxdrv.conf \ 205 205 $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \ 206 $(if $(VBOX_WITH_USB),vboxusb .conf,) \206 $(if $(VBOX_WITH_USB),vboxusbmon.conf,) \ 207 207 vboxdrv.sh \ 208 208 VBox.sh \ … … 382 382 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \ 383 383 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf,) \ 384 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusb .conf,) \384 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf,) \ 385 385 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \ 386 386 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \ … … 404 404 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf $(SOLARIS_INST_DIR)/vboxdrv.conf 405 405 $(QUIET)$(if $(VBOX_WITH_NETFLT),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf $(SOLARIS_INST_DIR)/vboxflt.conf,) 406 $(QUIET)$(if $(VBOX_WITH_USB),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusb .conf $(SOLARIS_INST_DIR)/vboxusb.conf,)406 $(QUIET)$(if $(VBOX_WITH_USB),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf $(SOLARIS_INST_DIR)/vboxusbmon.conf,) 407 407 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_INST_DIR)/LICENSE) 408 408 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_INST_DIR)/vbox.copyright) -
trunk/src/VBox/Installer/solaris/makepackage.sh
r17068 r17638 138 138 filelist_fixup prototype '$3 == "opt/VirtualBox/amd64/vboxflt=amd64/vboxflt"' '$3 = "platform/i86pc/kernel/drv/amd64/vboxflt=amd64/vboxflt"; $6 = "sys"' 139 139 140 # USB vboxusb 141 filelist_fixup prototype '$3 == "opt/VirtualBox/i386/vboxusb =i386/vboxusb"' '$3 = "platform/i86pc/kernel/drv/vboxusb=i386/vboxusb"; $6 = "sys"'142 filelist_fixup prototype '$3 == "opt/VirtualBox/amd64/vboxusb =amd64/vboxusb"' '$3 = "platform/i86pc/kernel/drv/amd64/vboxusb=amd64/vboxusb"; $6 = "sys"'140 # USB vboxusbmon 141 filelist_fixup prototype '$3 == "opt/VirtualBox/i386/vboxusbmon=i386/vboxusbmon"' '$3 = "platform/i86pc/kernel/drv/vboxusbmon=i386/vboxusbmon"; $6 = "sys"' 142 filelist_fixup prototype '$3 == "opt/VirtualBox/amd64/vboxusbmon=amd64/vboxusbmon"' '$3 = "platform/i86pc/kernel/drv/amd64/vboxusbmon=amd64/vboxusbmon"; $6 = "sys"' 143 143 144 144 # All the driver conf files 145 145 filelist_fixup prototype '$3 == "opt/VirtualBox/vboxdrv.conf=vboxdrv.conf"' '$3 = "platform/i86pc/kernel/drv/vboxdrv.conf=vboxdrv.conf"' 146 146 filelist_fixup prototype '$3 == "opt/VirtualBox/vboxflt.conf=vboxflt.conf"' '$3 = "platform/i86pc/kernel/drv/vboxflt.conf=vboxflt.conf"' 147 filelist_fixup prototype '$3 == "opt/VirtualBox/vboxusb .conf=vboxusb.conf"' '$3 = "platform/i86pc/kernel/drv/vboxusb.conf=vboxusb.conf"'147 filelist_fixup prototype '$3 == "opt/VirtualBox/vboxusbmon.conf=vboxusbmon.conf"' '$3 = "platform/i86pc/kernel/drv/vboxusbmon.conf=vboxusbmon.conf"' 148 148 149 149 # hardening requires some executables to be marked setuid. -
trunk/src/VBox/Installer/solaris/postinstall.sh
r17249 r17638 43 43 fi 44 44 45 if test -f /platform/i86pc/kernel/drv/vboxusb .conf && test "$osversion" != "5.10"; then45 if test -f /platform/i86pc/kernel/drv/vboxusbmon.conf && test "$osversion" != "5.10"; then 46 46 /opt/VirtualBox/vboxdrv.sh usbstart 47 47 rc=$? 48 48 if test "$rc" -eq 0; then 49 # add vboxusb to the devlink.tab49 # add vboxusbmon to the devlink.tab 50 50 sed -e ' 51 /name=vboxusb /d' /etc/devlink.tab > /etc/devlink.vbox52 echo "type=ddi_pseudo;name=vboxusb \D" >> /etc/devlink.vbox51 /name=vboxusbmon/d' /etc/devlink.tab > /etc/devlink.vbox 52 echo "type=ddi_pseudo;name=vboxusbmon \D" >> /etc/devlink.vbox 53 53 mv -f /etc/devlink.vbox /etc/devlink.tab 54 54 fi … … 112 112 113 113 # don't create link for Solaris 10 114 if test -f /platform/i86pc/kernel/drv/vboxusb .conf && test "$osversion" != "5.10"; then115 /usr/sbin/devfsadm -i vboxusb 114 if test -f /platform/i86pc/kernel/drv/vboxusbmon.conf && test "$osversion" != "5.10"; then 115 /usr/sbin/devfsadm -i vboxusbmon 116 116 fi 117 117 sync -
trunk/src/VBox/Installer/solaris/preremove.sh
r17068 r17638 47 47 mv -f /etc/devlink.vbox /etc/devlink.tab 48 48 49 # remove devlink.tab entry for vboxusb 49 # remove devlink.tab entry for vboxusbmon 50 50 sed -e ' 51 /name=vboxusb /d' /etc/devlink.tab > /etc/devlink.vbox51 /name=vboxusbmon/d' /etc/devlink.tab > /etc/devlink.vbox 52 52 mv -f /etc/devlink.vbox /etc/devlink.tab 53 53 … … 56 56 rm -f /dev/vboxdrv 57 57 fi 58 if test -h "/dev/vboxusb " || test -f "/dev/vboxusb"; then59 rm -f /dev/vboxusb 58 if test -h "/dev/vboxusbmon" || test -f "/dev/vboxusbmon"; then 59 rm -f /dev/vboxusbmon 60 60 fi 61 61 fi -
trunk/src/VBox/Installer/solaris/vboxdrv.sh
r17068 r17638 25 25 VBIMODNAME="vbi" 26 26 FLTMODNAME="vboxflt" 27 USBMODNAME="vboxusb "27 USBMODNAME="vboxusbmon" 28 28 MODDIR32="/platform/i86pc/kernel/drv" 29 29 MODDIR64=$MODDIR32/amd64 … … 123 123 } 124 124 125 vboxusb _added()125 vboxusbmon_added() 126 126 { 127 127 module_added $USBMODNAME … … 129 129 } 130 130 131 vboxusb _loaded()131 vboxusbmon_loaded() 132 132 { 133 133 module_loaded $USBMODNAME … … 253 253 254 254 255 start_vboxusb ()256 { 257 if vboxusb _loaded; then258 info "VirtualBox USB kernel module already loaded."259 else 260 /usr/sbin/add_drv -m'* 0600 root sys' $USBMODNAME || abort "Failed to add VirtualBox USB Kernel module."255 start_vboxusbmon() 256 { 257 if vboxusbmon_loaded; then 258 info "VirtualBox USB Monitor kernel module already loaded." 259 else 260 /usr/sbin/add_drv -m'* 0600 root sys' $USBMODNAME || abort "Failed to add VirtualBox USB Monitor Kernel module." 261 261 /usr/sbin/modload -p drv/$USBMODNAME 262 if test ! vboxusb _loaded; then262 if test ! vboxusbmon_loaded; then 263 263 abort "Failed to load VirtualBox USB kernel module." 264 264 else … … 268 268 } 269 269 270 stop_vboxusb ()271 { 272 if vboxusb _loaded; then273 vboxusb _mod_id=`/usr/sbin/modinfo | grep $USBMODNAME | cut -f 1 -d ' '`274 if test -n "$vboxusb _mod_id"; then275 /usr/sbin/modunload -i $vboxusb _mod_id270 stop_vboxusbmon() 271 { 272 if vboxusbmon_loaded; then 273 vboxusbmon_mod_id=`/usr/sbin/modinfo | grep $USBMODNAME | cut -f 1 -d ' '` 274 if test -n "$vboxusbmon_mod_id"; then 275 /usr/sbin/modunload -i $vboxusbmon_mod_id 276 276 277 277 # see stop_vboxdrv() for why we have "alwaysremdrv". … … 280 280 else 281 281 if test "$?" -eq 0; then 282 /usr/sbin/rem_drv $USBMODNAME || abort "Unloaded VirtualBox USB kernel module, but failed to remove it!"282 /usr/sbin/rem_drv $USBMODNAME || abort "Unloaded VirtualBox USB Monitor kernel module, but failed to remove it!" 283 283 else 284 abort "Failed to unload VirtualBox USB kernel module. Old one still active!!"284 abort "Failed to unload VirtualBox USB Monitor kernel module. Old one still active!!" 285 285 fi 286 286 fi … … 288 288 info "VirtualBox USB kernel module unloaded." 289 289 fi 290 elif vboxusb _added; then291 /usr/sbin/rem_drv $USBMODNAME || abort "Unloaded VirtualBox USB kernel module, but failed to remove it!"290 elif vboxusbmon_added; then 291 /usr/sbin/rem_drv $USBMODNAME || abort "Unloaded VirtualBox USB Monitor kernel module, but failed to remove it!" 292 292 info "VirtualBox USB kernel module unloaded." 293 293 elif test -z "$SILENTUNLOAD"; then … … 309 309 stop_all_modules() 310 310 { 311 stop_vboxusb 311 stop_vboxusbmon 312 312 stop_vboxflt 313 313 stop_module … … 318 318 start_module 319 319 start_vboxflt 320 start_vboxusb 320 start_vboxusbmon 321 321 } 322 322 … … 359 359 ;; 360 360 usbstart) 361 start_vboxusb 361 start_vboxusbmon 362 362 ;; 363 363 usbstop) 364 stop_vboxusb 364 stop_vboxusbmon 365 365 ;; 366 366 *)
Note:
See TracChangeset
for help on using the changeset viewer.