* Re: grep /proc/bus/usb /etc/fstab in etc/hotplug/usb.rc
@ 2003-06-08 18:55 Olaf Hering
2003-06-11 0:57 ` David Brownell
0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2003-06-08 18:55 UTC (permalink / raw)
To: linux-hotplug
On Mon, Jun 09, Fumitoshi UKAI wrote:
> At Sun, 8 Jun 2003 10:32:51 +0200,
> Olaf Hering wrote:
> >
> > Hi,
> >
> > what is the purpose of this hunk?
> >
> > @@ -135,7 +139,7 @@
> > if [ -d /proc/bus/usb ]; then
> > # if it's not mounted, try to mount it
> > if [ ! -f /proc/bus/usb/devices ]; then
> > - if grep -q "[ ]/proc/bus/usb[ ]" /etc/fstab ; then
> > + if grep -v '^#' /etc/fstab | grep -q "[ ]/proc/bus/usb[ ]"; then
> > mount /proc/bus/usb
> > else
> > # NOTE: name is changing to "usbfs" from "usbdevfs"
> > ftp.debian.org/debian/pool/main/h/hotplug/hotplug_0.0.20030117-7.diff.gz lines 729-783/891 87%
> >
> > It means, if the user has disabled usbfs in fstab, it will be mounted
> > anyway? disabling it in fstab is an effective way to disable usb hotplug
> > processing.
> > Is this 'mounting it anyway' intentionally?
>
> This is done to fix Bug#146783
> Should I revert this?
I'm not sure, the question is what is supposed to happen.
if the user has it disabled, then he probably wants it disabled, even if
usb hotplug would not work. In this case the mount should be a
mount /proc/bus/usb &>/dev/null to avoid the error message.
If we want to have it mounted anyway, this could work:
grep '^[^#].*[ ]/proc/bus/usb[ ]'
fstab could contain options for usbfs.
what do others think?
Gruss Olaf
--
USB is for mice, FireWire is for men!
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: grep /proc/bus/usb /etc/fstab in etc/hotplug/usb.rc
2003-06-08 18:55 grep /proc/bus/usb /etc/fstab in etc/hotplug/usb.rc Olaf Hering
@ 2003-06-11 0:57 ` David Brownell
0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2003-06-11 0:57 UTC (permalink / raw)
To: linux-hotplug
Olaf Hering wrote:
> On Mon, Jun 09, Fumitoshi UKAI wrote:
>>This is done to fix Bug#146783
>>Should I revert this?
You mean, from the Debian sources, yes?
>
> I'm not sure, the question is what is supposed to happen.
> if the user has it disabled, then he probably wants it disabled, even if
> usb hotplug would not work. In this case the mount should be a
USB hotplug works *just fine* without usbfs enabled.
What won't work is user mode drivers (they need usbfs),
or devices connected at boot time whose setup agents
can't do their work while the system isn't fully booted.
- Dave
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-11 0:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-08 18:55 grep /proc/bus/usb /etc/fstab in etc/hotplug/usb.rc Olaf Hering
2003-06-11 0:57 ` David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).