Arjen de Korte
2007-Feb-27 12:58 UTC
[Nut-upsdev] Re: [nut-commits] svn commit r831 - in trunk: . docs scripts scripts/hotplug scripts/udev
> Added: > trunk/scripts/hotplug/Makefile.am > trunk/scripts/udev/Makefile.am > Modified: > trunk/ChangeLog > trunk/Makefile.am > trunk/configure.in > trunk/docs/configure.txt > trunk/scripts/Makefile.am > trunk/scripts/hotplug/ (props changed) > trunk/scripts/udev/ (props changed) > trunk/scripts/udev/README > Log: > - autoconf: try to install hotplug and/or udev files by default. New > configuration options --with-hotplug-dir=PATH and --with-udev-dir=PATH.Maybe we could add a condition that --without-usb is not set. I usually compile with just one driver enabled (a non-USB one), yet the installation insisted on installing the hotplug and udev rules anyway. Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
Peter Selinger
2007-Feb-27 21:29 UTC
[Nut-upsdev] Re: [nut-commits] svn commit r831 - in trunk: . docs scripts
That's an excellent point. However, if the user specifies a list of drivers with --with-drivers=driver[,driver...], then it is not so easy to detect whether any of these require USB support. For this, the configure script would have to contain a list of USB drivers, which adds one more thing to update that could easily be forgotten. Is it a problem to install the hotplug/udev rules, even when no USB driver has been requested? By default, this will only be done if the corresponding directory exists, so should not give any errors or strange behavior. The rule will never do anything unless a known UPS is plugged into the USB port, in which case it's probably desired. -- Peter Arjen de Korte wrote:> > > > Added: > > trunk/scripts/hotplug/Makefile.am > > trunk/scripts/udev/Makefile.am > > Modified: > > trunk/ChangeLog > > trunk/Makefile.am > > trunk/configure.in > > trunk/docs/configure.txt > > trunk/scripts/Makefile.am > > trunk/scripts/hotplug/ (props changed) > > trunk/scripts/udev/ (props changed) > > trunk/scripts/udev/README > > Log: > > - autoconf: try to install hotplug and/or udev files by default. New > > configuration options --with-hotplug-dir=3DPATH and --with-udev-dir=3D> PATH. > > Maybe we could add a condition that --without-usb is not set. I usually > compile with just one driver enabled (a non-USB one), yet the installatio> n > insisted on installing the hotplug and udev rules anyway. > > Best regards, Arjen > --=20 > Eindhoven - The Netherlands > Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57 >
Seemingly Similar Threads
- [nut-commits] svn commit r1556 - in trunk: . docs drivers scripts/hal scripts/hotplug scripts/udev tools
- [nut-commits] svn commit r2777 - in trunk: data docs/man drivers scripts/hal scripts/hotplug scripts/udev
- [nut-commits] svn commit r1734 - in trunk/scripts: hal hotplug udev
- docs (was Re: Re: [nut-commits] svn commit r831 - in trunk: .)
- [nut-commits] svn commit r1029 - in trunk: . data drivers scripts/hotplug scripts/udev