Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133827 - sys-power/nut should install hotplug scripts when using usb
Summary: sys-power/nut should install hotplug scripts when using usb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-19 17:16 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-05-26 18:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild patch (nut-2.0.3-ebuild.patch,563 bytes, patch)
2006-05-19 17:17 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.