Hi!
The attached script simply copies one folder (and its subfolders) to another place (probably your iliad). It doesn't overwrite already existing files.
Then it also downloads the contents of the outbox folder, without overwriting anything.
How to use it?- Copy the file to a directory under your path, and get rid of the .txt extension (it's only for uploading)
- Chmod it to be executable
- Change the variables at the beginning of the file
- Once the iLiad is mounted, run the file
Todo
The script has one major drawback, that it is not run automatically. I've tried to run it from udev, but seemingly at that time it is not yet mounted, only the block device is created.
If someone would find out how to delay the running of the script, or which other service should be used. Please, share your info with me as well!
Anyway, the udev rule is (put in under /etc/udev/rules.d/10-local.rule):
Code:
SUBSYSTEM=="block", SUBSYSTEMS=="usb", ATTRS{product}=="ER0100 eReader ", ATTRS{manufacturer}=="iRex TechnologiesBV ", RUN+="/home/nagyv/bin/iliadSync.sh & disown"
Of course, don't forget to change the path to the script.