From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rajkumar Manoharan Date: Fri, 10 Sep 2010 10:57:37 +0000 Subject: [PATCH] rules: add udev rule for ath9k_htc (AR7010) device Message-Id: <1284116300-9060-1-git-send-email-rmanoharan@atheros.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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 --- 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