Hi Notimp,
I've added WiFi automatic on/off commands to the code. Available at master in repository
https://github.com/trap000d/dropbox-...ive/master.zip
It has not tested yet (no Kindle on hand) so the code might work or not.
Also this hardcoded solution might break someone's preferences: what if somebody would like to keep their WiFi connection active all the time ?
I could add another key into config, e.g. "autowifi=1" will activate wireless
OR. (what looks even better) I can check if connection is active, remember the state, enable it if not active, and restore the original state at the end. Something like 'host dropbox.com' or 'ping -c 1 dropbox.com' should work, thought.
P.S. Unfortunately, for several next days I'll have no time for this (come back home only after Xmas)
Regards,
Quote:
Originally Posted by notimp
|