trying display image when connected internet , when not, managed come 2 geeklet system:
1 shell:
if curl -f -s http://google.com > /dev/null ; cp /users/mike/documents/net.png /tmp/connstatus.png ; /users/mike/documents/nonet.png /tmp/connstatus.png ; fi ;
2 image: pointing /tmp/connstatus.png
it not work. in andvace
you missing else
statement in if
:
if curl -f -s http://google.com > /dev/null cp /users/mike/documents/net.png /tmp/connstatus.png else cp /users/mike/documents/nonet.png /tmp/connstatus.png fi
Comments
Post a Comment