Linux Hotplug development
 help / color / mirror / Atom feed
From: Rajkumar Manoharan <rmanoharan@atheros.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] rules: add udev rule for ath9k_htc (AR7010) device
Date: Fri, 10 Sep 2010 10:57:37 +0000	[thread overview]
Message-ID: <1284116300-9060-1-git-send-email-rmanoharan@atheros.com> (raw)

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


             reply	other threads:[~2010-09-10 10:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-10 10:57 Rajkumar Manoharan [this message]
2010-09-10 11:20 ` [PATCH] rules: add udev rule for ath9k_htc (AR7010) device Kay Sievers
2010-09-13  6:44 ` Rajkumar Manoharan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1284116300-9060-1-git-send-email-rmanoharan@atheros.com \
    --to=rmanoharan@atheros.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox