Linux Hotplug development
 help / color / mirror / Atom feed
* [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

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