Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 133827

Summary: sys-power/nut should install hotplug scripts when using usb
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild patch

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-19 17:16:22 UTC
AS per summary, sys-power/nut should install the hotplug scripts so that the hid device related to the UPS can be correctly chmodded and chowned to nut group.
The attached patch does so.

They are not used -yet- on FreeBSD, but I'm really tempted to do so as soon as I can get an hotplug equivalent for FreeBSD :)

HTH,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-19 17:17:43 UTC
Created attachment 87091 [details, diff]
Ebuild patch
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-19 17:50:39 UTC
Please read the documentation.
scripts/hotplug is deprecated, and the udev rules from scripts/hotplug-ng/ are used instead.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-20 03:47:45 UTC
Uh well a part udev not working for me (sigh, it's not the first time anyway), would it be possible to install it only when udev is not installed?

if ! has_version sys-fs/udev; then
    insinto /etc/hotplug/usb
    doins blabla
fi

?

It would be simpler to me to write a hotplug-workalike for FreeBSD rather than a udev-workalike ;)
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-24 21:43:28 UTC
flameeyes: does the script at hotplug-ng/nut-usbups.hotplug work in FreeBSD?
If so, that is the one I will use.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-26 18:15:04 UTC
in cvs.