Changeset 23344 in vbox
- Timestamp:
- Sep 25, 2009 4:37:29 PM (15 years ago)
- Location:
- trunk/src/VBox/Installer/solaris
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/Makefile.kmk
r22385 r23344 166 166 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf) \ 167 167 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf) \ 168 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf) 168 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf) \ 169 $(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusb.conf) 169 170 170 171 # … … 193 194 $(if $(VBOX_WITH_NETFLT),vboxflt,) \ 194 195 $(if $(VBOX_WITH_NETADP),vboxnet,) \ 195 $(if $(VBOX_WITH_USB),vboxusbmon,) 196 $(if $(VBOX_WITH_USB),vboxusbmon,) \ 197 $(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),vboxusb,) 196 198 197 199 SOLARIS_DRIVER_CONFS = \ … … 199 201 $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \ 200 202 $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \ 201 $(if $(VBOX_WITH_USB),vboxusbmon.conf,) 203 $(if $(VBOX_WITH_USB),vboxusbmon.conf,) \ 204 $(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),vboxusb.conf,) 202 205 203 206 # Strip these binaries … … 543 546 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_ISA)/VirtualBox.chm,) 544 547 endif 548 $(QUIET)$(LN_SYMLINK) -f ./pkginstall.sh $(SOLARIS_VBOXINST_DIR)/ipsinstall.sh 545 549 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,) 546 550 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml -
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r22376 r23344 57 57 DESC_VBOXUSBMON="USBMonitor" 58 58 59 MOD_VBOXUSB=vboxusb 60 DESC_VBOXUSB="USB" 61 59 62 FATALOP=fatal 63 NULLOP=nulloutput 60 64 SILENTOP=silent 61 65 IPSOP=ips … … 215 219 } 216 220 217 # add_driver(modname, moddesc, [driverperm], [fatal])218 # failure: depends on [fatal]221 # add_driver(modname, moddesc, fatal, nulloutput, [driverperm]) 222 # failure: depends on "fatal" 219 223 add_driver() 220 224 { … … 226 230 modname="$1" 227 231 moddesc="$2" 228 modperm="$3" 229 if test "$3" = "$FATALOP"; then 230 fatal="$FATALOP" 231 modperm="" 232 fi 233 if test "$4" = "$FATALOP"; then 234 fatal="$FATALOP" 235 fi 232 fatal="$3" 233 nullop="$4" 234 modperm="$5" 236 235 237 236 if test -n "$modperm"; then 238 $BIN_ADDDRV -m"$modperm" $modname 237 if test "$nullop" = "$NULLOP"; then 238 $BIN_ADDDRV -m"$modperm" $modname >/dev/null 2>&1 239 else 240 $BIN_ADDDRV -m"$modperm" $modname 241 fi 239 242 else 240 $BIN_ADDDRV $modname 243 if test "$nullop" = "$NULLOP"; then 244 $BIN_ADDDRV $modname >/dev/null 2>&1 245 else 246 $BIN_ADDDRV $modname 247 fi 241 248 fi 242 249 … … 342 349 { 343 350 if test -n "_HARDENED_"; then 344 add_driver "$MOD_VBOXDRV" "$DESC_VBOXDRV" " '* 0600 root sys'" "$FATALOP"351 add_driver "$MOD_VBOXDRV" "$DESC_VBOXDRV" "$FATALOP" "not-$NULLOP" "'* 0600 root sys'" 345 352 else 346 add_driver "$MOD_VBOXDRV" "$DESC_VBOXDRV" " '* 0666 root sys'" "$FATALOP"353 add_driver "$MOD_VBOXDRV" "$DESC_VBOXDRV" "$FATALOP" "not-$NULLOP" "'* 0666 root sys'" 347 354 fi 348 355 load_module "drv/$MOD_VBOXDRV" "$DESC_VBOXDRV" "$FATALOP" … … 383 390 exit 1 384 391 fi 392 393 # Add vboxusb if present 394 # This driver is special, we need it in the boot-archive but since there is no 395 # USB device to attach to now (it's done at runtime) it will fail to attach so 396 # redirect attaching failure output to /dev/null 397 if test -f /platform/i86pc/kernel/drv/vboxusb.conf; then 398 add_driver "$MOD_VBOXUSB" "$DESC_VBOXUSB" "$FATALOP" "$NULLOP" 399 fi 385 400 fi 386 401 else … … 411 426 mv -f /etc/devlink.vbox /etc/devlink.tab 412 427 fi 428 429 unload_module "$MOD_VBOXUSB" "$DESC_VBOXUSB" "$fatal" 430 rem_driver "$MOD_VBOXUSB" "$DESC_VBOXUSB" "$fatal" 413 431 414 432 unload_module "$MOD_VBOXUSBMON" "$DESC_VBOXUSBMON" "$fatal"
Note:
See TracChangeset
for help on using the changeset viewer.