Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 33423 Details for
Bug 50934
USB hotplug + udev + libusb + sane-backends + scanner produces error during boot "cannot access /proc/bus/usb/002/004: no such file or directory"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
modified to check /sys when $DEVICE is not set
libusbscanner (text/plain), 858 bytes, created by
Patrick Kursawe (RETIRED)
on 2004-06-17 07:40:32 UTC
(
hide
)
Description:
modified to check /sys when $DEVICE is not set
Filename:
MIME Type:
Creator:
Patrick Kursawe (RETIRED)
Created:
2004-06-17 07:40:32 UTC
Size:
858 bytes
patch
obsolete
>#!/bin/sh > ># This file is part of sane-backends. ># ># This script changes the permissions and ownership of a USB device under ># /proc/bus/usb to grant access to this device to users in the scanner group. ># ># Ownership is set to root:scanner, permissions are set to 0660. ># ># Arguments : ># ----------- ># ACTION=[add|remove] ># DEVICE=/proc/bus/usb/BBB/DDD ># TYPE=usb > > >if [ -z "${DEVICE}" ] ; then > IF=$(echo ${DEVPATH} | sed 's:\(bus/usb/devices/\)\(.*\)-\(.*\):\2:') > DEV=$(cat /sys/${DEVPATH}/devnum) > DEVICE=$(printf '/proc/bus/usb/%.03d/%.03d' ${IF} ${DEV}) >fi > >if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then > chown root:scanner "$DEVICE" > chmod 0660 "$DEVICE" >fi > > ># That's an insecure but simple alternative ># Everyone has access to the scanner > ># if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then ># chmod 0666 "$DEVICE" ># fi >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 50934
: 33423 |
33425
|
86468
|
88593