Quote:
Originally Posted by jmacindoe
1. On my Clara 2E the network device is mlan0 so I needed this rule
Code:
KERNEL=="mlan*", ACTION=="add", RUN+="..."
|
Interesting. Most examples list a eth* device, never understood why the Kobo would have one.
Quote:
Originally Posted by jmacindoe
2. For some reason the command didn't run unless I wrapped it with /bin/sh and made it run async
Code:
KERNEL=="eth*", ACTION=="add", RUN+="/bin/sh -c '/bin/pull &'"
|
Might be because it needs an executable bit? The root system is an ext filesystem.
Quote:
Originally Posted by jmacindoe
4. I like to output the log to the screen so I can check it worked. So
Code:
rclone copy --args-etc 2>&1 | /usr/local/kfmon/bin/fbink
Logging the errors 2>&1 was really useful for debugging.
|
You could also use qndb for that as it can trigger popups and dialogs.
Quote:
Originally Posted by jmacindoe
5. For some reason rclone used a different config file location when running from SSH and koreader vs when running from udev. Can be fixed by specifying with the --config flag.
|
Should be enough to put the config in the same directory as rclone?