Changeset 62730 in vbox for trunk/src/VBox/Installer/linux
- Timestamp:
- Jul 30, 2016 9:07:54 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109308
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/vboxdrv.sh
r62689 r62730 142 142 USB_GROUP="$4" # The group that has permission to access USB devices 143 143 NO_INSTALL="$5" # Set this to "1" to remove but not re-install rules 144 UDEV_STRING="$6" # The output of the udev version command145 144 146 145 # Extra space! 147 146 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" 172 150 } 173 151 … … 182 160 183 161 if test -d /etc/udev/rules.d; then 184 udev_out="`udevadm version 2>/dev/null || udevinfo -V 2>/dev/null`"185 162 generate_udev_rule "$VBOXDRV_GRP" "$VBOXDRV_MODE" "$INSTALLATION_DIR" \ 186 "$USB_GROUP" "$NO_INSTALL" "$udev_out"163 "$USB_GROUP" "$NO_INSTALL" 187 164 fi 188 165 # Remove old udev description file
Note:
See TracChangeset
for help on using the changeset viewer.