![]() |
#1 |
Member
![]() Posts: 19
Karma: 10
Join Date: Feb 2014
Device: pw, pw2
|
start script on network connection
Hi,
I'm currently working on a server-less weather station screensaver. The data update works nice via cronjob or via kual menu. But now I want to update weather data when I switch on the kindle pw2 and the wlan0 interface comes up and a network connection is possible. I tried /etc/network/if-up.d and also tried the "up" section in /etc/interfaces. My problem is that the script will be executed nicely but there is still no connection to the internet. I dumped iwconfig and ifconfig and everything looked right regarding the wlan0 interface, the AP association and the internet configuration. However, it seems that there is still something happening after wlan0 is up in order to successfully access the internet. What am I missing? |
![]() |
![]() |
![]() |
#2 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
There are a bunch of lilc event related to networking, they might be better suited and/or accurate for your needs.
IIRC, it's been discussed a few times, and there might even be some code laying around. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 19
Karma: 10
Join Date: Feb 2014
Device: pw, pw2
|
I searched the wiki and the forum for suitable lipc stuff but did not find anything. All solutions I've seen were based on if-up.d scripts but that does obviously not work for the pw2.
I will test poking around in /etc/lipc-daemon-events.conf |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KPW Win8 x64 PuTTy network error: connection refused | Bagerfahrer | Kindle Developer's Corner | 2 | 01-19-2013 12:18 PM |
Is it possible to start GUI from debug script? | Pepin33 | Development | 2 | 12-08-2012 12:30 PM |
Kindle Touch: execute script when wifi connection is established | atordo | Kindle Developer's Corner | 5 | 07-13-2012 05:06 AM |
Bluetooth or Network connection to a Mac? | natescape | enTourage Archive | 0 | 05-15-2011 12:56 PM |
602 Editing the PPP connection script ? | J.C. | PocketBook Developer's Corner | 0 | 03-06-2011 10:56 AM |