View Single Post
Old 02-21-2023, 03:29 AM   #15
qkqw
Connoisseur
qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.
 
Posts: 63
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
Quote:
Originally Posted by jmacindoe View Post
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 View Post
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 View Post
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 View Post
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?
qkqw is offline   Reply With Quote