| … | |
… | |
| 64 | if [ -d /proc/bus/usb -a ! -e /proc/bus/usb/devices ] ; then |
64 | if [ -d /proc/bus/usb -a ! -e /proc/bus/usb/devices ] ; then |
| 65 | local usbfs=$(grep -Fow usbfs /proc/filesystems || |
65 | local usbfs=$(grep -Fow usbfs /proc/filesystems || |
| 66 | grep -Fow usbdevfs /proc/filesystems) |
66 | grep -Fow usbdevfs /proc/filesystems) |
| 67 | |
67 | |
| 68 | if [ -n "${usbfs}" ] ; then |
68 | if [ -n "${usbfs}" ] ; then |
| 69 | ebegin $"Mounting USB device filesystem" "(${usbfs})" |
69 | ebegin "Mounting USB device filesystem (${usbfs})" |
| 70 | local usbgid="$(getent group usb | \ |
70 | local usbgid="$(getent group usb | \ |
| 71 | sed -e 's/.*:.*:\(.*\):.*/\1/')" |
71 | sed -e 's/.*:.*:\(.*\):.*/\1/')" |
| 72 | mount -t ${usbfs} \ |
72 | mount -t ${usbfs} \ |
| 73 | -o ${usbgid:+devmode=0664,devgid=${usbgid},}noexec,nosuid \ |
73 | -o ${usbgid:+devmode=0664,devgid=${usbgid},}noexec,nosuid \ |
| 74 | usbfs /proc/bus/usb |
74 | usbfs /proc/bus/usb |