* [PATCH] rules: add udev rule for ath9k_htc (AR7010) device
@ 2010-09-10 10:57 Rajkumar Manoharan
2010-09-10 11:20 ` Kay Sievers
2010-09-13 6:44 ` Rajkumar Manoharan
0 siblings, 2 replies; 3+ messages in thread
From: Rajkumar Manoharan @ 2010-09-10 10:57 UTC (permalink / raw)
To: linux-hotplug
AR7010 cards detected as USB Mass storage mode by default and an eject
command is required to switch to wireless mode.
Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
---
rules/rules.d/60-persistent-storage.rules | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/rules/rules.d/60-persistent-storage.rules b/rules/rules.d/60-persistent-storage.rules
index 6449e07..16c2fb1 100644
--- a/rules/rules.d/60-persistent-storage.rules
+++ b/rules/rules.d/60-persistent-storage.rules
@@ -74,4 +74,6 @@ ENV{ID_FS_USAGE}="filesystem|other", ENV{ID_FS_LABEL_ENC}="?*", SYMLINK+="disk
ENV{DEVTYPE}="disk", ENV{ID_WWN_WITH_EXTENSION}="?*", SYMLINK+="disk/by-id/wwn-$env{ID_WWN_WITH_EXTENSION}"
ENV{DEVTYPE}="partition", ENV{ID_WWN_WITH_EXTENSION}="?*", SYMLINK+="disk/by-id/wwn-$env{ID_WWN_WITH_EXTENSION}-part%n"
+# eject atheros usb mass storage device
+SUBSYSTEM="block", ENV{DEVTYPE}="disk", ENV{ID_VENDOR}="Virtual", ENV{ID_VENDOR_ID}="0cf3", RUN+="/usr/bin/eject /dev/%k"
LABEL="persistent_storage_end"
--
1.7.2.3
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] rules: add udev rule for ath9k_htc (AR7010) device
2010-09-10 10:57 [PATCH] rules: add udev rule for ath9k_htc (AR7010) device Rajkumar Manoharan
@ 2010-09-10 11:20 ` Kay Sievers
2010-09-13 6:44 ` Rajkumar Manoharan
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2010-09-10 11:20 UTC (permalink / raw)
To: linux-hotplug
On Fri, Sep 10, 2010 at 12:58, Rajkumar Manoharan
<rmanoharan@atheros.com> wrote:
> AR7010 cards detected as USB Mass storage mode by default and an eject
> command is required to switch to wireless mode.
This has nothing to do with persistent device naming, and the core of
udev can not be made device specific. It's installed on all
architectures and systems, and therefore such hardware specific
matches can not be in the default rule set.
Udev rules must not call any tools from /usr. Some packages do that,
but the main udev package should not do that. Note, that I absolutely
don't mind if people do that, because I think /usr must _never_ be on
a separate partition.
Also the main udev package can not ship hardware specific rules,
nobody will care about them, and they will no be maintained here and
just bit-rot. Maybe it can go into the usb_modeswitch package, which
does this eject thing for many other devices?
Thanks,
Kay
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] rules: add udev rule for ath9k_htc (AR7010) device
2010-09-10 10:57 [PATCH] rules: add udev rule for ath9k_htc (AR7010) device Rajkumar Manoharan
2010-09-10 11:20 ` Kay Sievers
@ 2010-09-13 6:44 ` Rajkumar Manoharan
1 sibling, 0 replies; 3+ messages in thread
From: Rajkumar Manoharan @ 2010-09-13 6:44 UTC (permalink / raw)
To: linux-hotplug
On Fri, Sep 10, 2010 at 04:50:01PM +0530, Kay Sievers wrote:
> On Fri, Sep 10, 2010 at 12:58, Rajkumar Manoharan
> <rmanoharan@atheros.com> wrote:
> > AR7010 cards detected as USB Mass storage mode by default and an eject
> > command is required to switch to wireless mode.
>
> This has nothing to do with persistent device naming, and the core of
> udev can not be made device specific. It's installed on all
> architectures and systems, and therefore such hardware specific
> matches can not be in the default rule set.
>
> Udev rules must not call any tools from /usr. Some packages do that,
> but the main udev package should not do that. Note, that I absolutely
> don't mind if people do that, because I think /usr must _never_ be on
> a separate partition.
>
> Also the main udev package can not ship hardware specific rules,
> nobody will care about them, and they will no be maintained here and
> just bit-rot. Maybe it can go into the usb_modeswitch package, which
> does this eject thing for many other devices?
>
> Thanks,
> Kay
Thanks for your input and the rule has been integrated into usb_modeswitch
package.
Thanks,
Rajkumar
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-13 6:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-10 10:57 [PATCH] rules: add udev rule for ath9k_htc (AR7010) device Rajkumar Manoharan
2010-09-10 11:20 ` Kay Sievers
2010-09-13 6:44 ` Rajkumar Manoharan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox