View Single Post
Old 11-07-2010, 09:57 PM   #1
theblop
Junior Member
theblop began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2010
Device: kindle 3
Kindle 3: run script when turning wifi on?

Hi,

Any idea how I can run a script when wifi is started via the kindle interface?

The kindle 3 comes with rsync (which even works fine with dropbear/ssh) and it would be great to rsync a book collection automatically from a server when the wifi connection is turned on (not with wan/3g though!)

There is a /etc/network/if-up.d/ directory on the kindle, but I don't know if it is used after booting. The wifi connection seems to be controlled via the /usr/sbin/wifid process which runs as a daemon, and probably ignores the /etc/network/*/ scripts (I haven't tried it though!).

Anyone has an idea about how to achieve that?

Thanks!
theblop is offline   Reply With Quote