linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tim Sander <tim@krieglstein.org>
To: linux-hotplug@vger.kernel.org
Subject: Ting Stick Udev Support
Date: Fri, 26 Jul 2013 19:48:09 +0000	[thread overview]
Message-ID: <6549306.UZb6P8InKs@virgo> (raw)

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

Hi

Attached are two files which enable the basic functionality to use a Ting-Stick
with Linux. They read out the TDB.TXT file which contains the book nrs and 
downloads the coressponding files and clears the TDB.TXT file afterwards.

There is no signalling or anything fancy so there is no indication when the 
download process is finished. Also i didn't find an easy way to post a message 
to all logged in users via script.

ting.sh should be executable and placed under /usr/local/lib
99-ting.rules is placed in /etc/udev/rules.d.

The files are GPLv2 or later and created by me.

Best regards
Tim

[-- Attachment #2: ting.sh --]
[-- Type: application/x-shellscript, Size: 531 bytes --]

[-- Attachment #3: 99-ting.rules --]
[-- Type: text/plain, Size: 115 bytes --]

SUBSYSTEM=="block",KERNEL=="sd[a-z]",ACTION=="add",ATTRS{vendor}=="TingDisk",RUN:="/usr/local/lib/ting.sh /dev/%k"

                 reply	other threads:[~2013-07-26 19:48 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=6549306.UZb6P8InKs@virgo \
    --to=tim@krieglstein.org \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).