From: Pantelis Koukousoulas <pktoss@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: Add atm device description rules
Date: Sat, 23 Apr 2011 17:38:52 +0000 [thread overview]
Message-ID: <BANLkTikyTceC16iEDUTLB-som8ax4_XfwQ@mail.gmail.com> (raw)
USB ATM devices could use the same treatment that USB ethernet
devices enjoy, so that the atm device inherits the info from its parent
USB device. Would this be useful to include in mainline udev?
cat > 75-atm-description.rules << EOF
# do not edit this file, it will be overwritten on update
ACTION="remove", GOTO="atm_end"
SUBSYSTEM!="atm", GOTO="atm_end"
SUBSYSTEMS="usb", ENV{ID_MODEL}="", IMPORT{program}="usb_id --export %p"
SUBSYSTEMS="usb", ENV{ID_MODEL_FROM_DATABASE}="", IMPORT{program}="usb-db %p"
SUBSYSTEMS="usb", ATTRS{idVendor}!="", ATTRS{idProduct}!="",
ENV{ID_VENDOR_ID}="$attr{idVendor}",
ENV{ID_MODEL_ID}="$attr{idProduct}"
SUBSYSTEMS="usb", GOTO="atm_end"
SUBSYSTEMS="pci", ENV{ID_MODEL_FROM_DATABASE}="", IMPORT{program}="pci-db %p"
SUBSYSTEMS="pci", ENV{ID_BUS}="pci",
ENV{ID_VENDOR_ID}="$attr{vendor}", ENV{ID_MODEL_ID}="$attr{device}"
LABEL="atm_end"
EOF
Thanks,
Pantelis
reply other threads:[~2011-04-23 17:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=BANLkTikyTceC16iEDUTLB-som8ax4_XfwQ@mail.gmail.com \
--to=pktoss@gmail.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