filesystems: configure /proc/bus/usb with permissions for sysadmin group as required by VirtualBox
This commit is contained in:
parent
944010ca86
commit
e9c2831bae
@ -3,7 +3,7 @@
|
||||
# filesystems - filesystems plugin for postplug
|
||||
# Copyright (c) 2004-2007 by Davide Madrisan <davide.madrisan@qilinux.it>
|
||||
# Copyright (c) 2007 by Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
||||
# Copyright (c) 2009 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (c) 2009-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
|
||||
if [ $UID != 0 ]; then
|
||||
echo "$0: must be superuser." >&2
|
||||
@ -155,7 +155,7 @@ if [ "$FS_VFS_UPDATE" != no ]; then
|
||||
# probe for USB if the entry were not present in /etc/fstab
|
||||
if [ -d /proc/bus/usb ]; then
|
||||
grep -q "/proc/bus/usb" $fstab 2>/dev/null ||
|
||||
{ echo "usbfs /proc/bus/usb usbfs defaults 0 0" >> $fstab
|
||||
{ echo "usbfs /proc/bus/usb usbfs devgid=30,devmode=664 0 0" >> $fstab
|
||||
logmsg "$me" $"added an entry for \`usbfs' in $fstab"
|
||||
mount /proc/bus/usb &>/dev/null; }
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user