Sorry - most of the time the redrawing works fine. As long as USB is connected - I think the battery maybe knackered however I also think usbnet is enabled:
Code:
[2654886.905173] usb 3-3: new high-speed USB device number 35 using ehci-pci
[2654887.056085] usb 3-3: New USB device found, idVendor=0525, idProduct=a4a2
[2654887.056088] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[2654887.056090] usb 3-3: Product: RNDIS/Ethernet Gadget
[2654887.056091] usb 3-3: Manufacturer: Linux 2.6.26-rt-lab126/fsl-usb2-udc
Crontab to call the script, once we're up and running:
Code:
[root@kindle root]# cat /etc/crontab/
cat: read error: Is a directory
[root@kindle root]# cat /etc/crontab/root
*/15 * * * * /usr/sbin/checkpmond
*/15 * * * * /usr/sbin/tinyrot
*/60 * * * * /usr/sbin/loginfo tmpfs
*/60 * * * * /usr/sbin/loginfo localVars
*/60 * * * * /usr/sbin/loginfo memusedump
*/15 * * * * /usr/sbin/loginfo powerdcheck
*/3 * * * * /mnt/us/weather/display-weather.sh
## And the script itself
[root@kindle root]# cat /mnt/us/weather/display-weather.sh
#!/bin/sh
cd "$(dirname "$0")"
rm weather-script-output.png
eips -c
eips -c
if wget http://192.168.0.10/weather/weather-script-output.png; then
eips -g weather-script-output.png
else
sleep 30
if wget http://192.168.0.10/weather/weather-script-output.png; then
eips -g weather-script-output.png
else
sleep 30
if wget http://192.168.0.10/weather/weather-script-output.png; then
eips -g weather-script-output.png
elsE
eips -g weather-image-error.png
fi
fi
fi