VirtualBox

Changeset 58431 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Oct 27, 2015 2:55:01 PM (9 years ago)
Author:
vboxsync
Message:

linux/load.sh,linux/vboxdrv.sh: Added stop_keep_udev to vboxdrv.sh and made load.sh use it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxdrv.sh

    r58417 r58431  
    315315stop()
    316316{
    317     begin_msg "Stopping VirtualBox services" console
    318     # Remove udev description file
    319     rm -f /etc/udev/rules.d/60-vboxdrv.rules
    320     rm -f /etc/udev/rules.d/10-vboxdrv.rules
    321 
    322     # Remove our USB device tree
    323     rm -rf /dev/vboxusb
     317    if test ${#} -eq 0 || ! test "${1}" = "--keep-udev"; then
     318        begin_msg "Stopping VirtualBox services" console
     319
     320        # Remove udev description file
     321        rm -f /etc/udev/rules.d/60-vboxdrv.rules
     322        rm -f /etc/udev/rules.d/10-vboxdrv.rules
     323
     324        # Remove our USB device tree
     325        rm -rf /dev/vboxusb
     326    else
     327        begin_msg "Stopping VirtualBox services (keeping udev + usb)" console
     328    fi
    324329
    325330    if running vboxpci; then
     
    495500    stop_vms
    496501    ;;
     502stop_keep_udev)
     503    # This is used by src/VBox/HostDrivers/linux/load.sh.
     504    stop_vms
     505    stop --keep-udev
     506    ;;
    497507restart)
    498508    stop && start
Note: See TracChangeset for help on using the changeset viewer.

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