forked from pool/virtualbox
02c410e4c7
- 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
8 lines
335 B
Bash
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
|
|
|