Skip to contentSkip to conversation

Ting Stick Udev Support

DISCUSSION Tim Sander 1 participant 1 message Jul 26, 2013

lore
Share & tools
lore

Tim Sander

author
#0 lore raw

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

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