On Thu, Jun 12, David Brownell wrote:
> Bill Nottingham wrote:
> >
> >It's actually only for the second reason; so that the keyboard is
> >there if (for example) fsck fails.
>
> So it looks like it'd be a win if "rc.usb boot" did that logic,
> without the "coldplug" stuff to handle the system being only
> partially booted. RH-specific logic won't be necessary.
Our runlevel S loads the usb stuff unconditionally like this:
#
# load usb drivers in runlevel S
#
case "${PREVLEVEL}${RUNLEVEL}" in
N1|NS)
test -f /etc/sysconfig/hotplug && . /etc/sysconfig/hotplug && test
"$HOTPLUG_START_USB" = "yes" && {
test -f /proc/cpuinfo || mount -n -t proc proc /proc 2>/dev/null
test -d /proc/bus/usb || modprobe usbcore >/dev/null 2>&1
mount usbdevfs >/dev/null 2>&1
for i in $HOTPLUG_USB_HOSTCONTROLLER_LIST ;do echo -n $i" " ;modprobe $i
>/dev/null 2>&1 ;done;echo
sleep 3
grep ^I: /proc/bus/usb/devices | grep HID && for i in input hid keybdev;do
modprobe $i >/dev/null 2>&1 ;done
}
;;
esac
This HOTPLUG_START_USB used to exist, but I'm not sure if we will leave
these HOTPLUG_START_{USB,IEEE1394,...} stuff for the next release. I
will probably remove it, have to think about it in the next days.
Well, maybe something like this could become part of a 'usb.rc boot' or
'usb.rc single' or something.
The only real issue is the /etc/sysconfig/ vs. /etc/default/
We should source both if they exist, it causes only one additional
stat() call.
The goal should be that the configuration is unified somehow, and not
spread all over /etc for the various distros.
Gruss Olaf
--
USB is for mice, FireWire is for men!
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel