1
0
forked from pool/virtualbox
virtualbox/fix_usb_rules.sh
Larry Rainey 02c410e4c7 Accepting request 1062966 from home:lwfinger:branches:Virtualization
-  Fix a few places that did not get updated for the transition from
   /sbin => /usr/sbin, and /etc/udev => /usr/lib/udev.  boo#1207736.
   ldconfig has not been moved in Leap 15.4 - use /sbin for it.

OBS-URL: https://build.opensuse.org/request/show/1062966
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=675
2023-02-03 00:11:22 +00:00

8 lines
335 B
Bash

#!/bin/bash
# script to disable USB passthru in /etc/udev/rules.d/60-vboxdrv.rules
# if already disabled, clear the comment character
sed -i 's/#SUBSYSTEM==\"usb/SUBSYSTEM==\"usb/' /usr/lib/udev/rules.d/60-vboxdrv.rules
# now comment the usb lines
sed -i 's/SUBSYSTEM==\"usb/#SUBSYSTEM==\"usb/' /usr/lib/udev/rules.d/60-vboxdrv.rules