VirtualBox

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


Ignore:
Timestamp:
Jul 30, 2016 9:07:54 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109308
Message:

bugref:3809: Linux installer maintenance: remove the work-around support for versions of udev earlier than 60 (more than ten years ago) in the host installers.

File:
1 edited

Legend:

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

    r62689 r62730  
    142142    USB_GROUP="$4"        # The group that has permission to access USB devices
    143143    NO_INSTALL="$5"       # Set this to "1" to remove but not re-install rules
    144     UDEV_STRING="$6"      # The output of the udev version command
    145144
    146145    # Extra space!
    147146    case "$USB_GROUP" in ?*) USB_GROUP=" $USB_GROUP" ;; esac
    148     case "$NO_INSTALL" in
    149     "1") ;;
    150     *)
    151         udev_ver=`expr "$UDEV_STRING" : '[^0-9]*\([0-9]*\)'`
    152         udev_fix=""
    153         test "$udev_ver" = "" -o "$udev_ver" -lt 55 &&
    154             udev_fix="1"
    155         udev_do_usb=""
    156         test "$udev_ver" -ge 59 &&
    157             udev_do_usb="1"
    158         case "$udev_fix" in
    159         "1")
    160             udev_write_vboxdrv "$VBOXDRV_GRP" "$VBOXDRV_MODE" |
    161                 sed 's/\([^+=]*\)[+=]*\([^"]*"[^"]*"\)/\1=\2/g'
    162             ;;
    163         *)
    164             udev_write_vboxdrv "$VBOXDRV_GRP" "$VBOXDRV_MODE"
    165             case "$udev_do_usb" in "1")
    166                 udev_write_usb "$INSTALLATION_DIR" "$USB_GROUP" ;;
    167             esac
    168             ;;
    169         esac
    170         ;;
    171     esac
     147    case "$NO_INSTALL" in "1") return ;; esac
     148    udev_write_vboxdrv "$VBOXDRV_GRP" "$VBOXDRV_MODE"
     149    udev_write_usb "$INSTALLATION_DIR" "$USB_GROUP"
    172150}
    173151
     
    182160
    183161    if test -d /etc/udev/rules.d; then
    184         udev_out="`udevadm version 2>/dev/null ||  udevinfo -V 2>/dev/null`"
    185162        generate_udev_rule "$VBOXDRV_GRP" "$VBOXDRV_MODE" "$INSTALLATION_DIR" \
    186                            "$USB_GROUP" "$NO_INSTALL" "$udev_out"
     163                           "$USB_GROUP" "$NO_INSTALL"
    187164    fi
    188165    # Remove old udev description file
Note: See TracChangeset for help on using the changeset viewer.

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