View Single Post
Old 01-14-2008, 03:38 PM   #77
rodin
Junior Member
rodin began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2007
Device: iRex 2nd Gen
Possibly helpful hints...

Regarding the LF problem, there is a linux/cygwin command-line utility called dos2unix, which will fix it automatically. However, I suspect it's only the first line of run.sh that gives you trouble.

"#!/bin/sh" starts a new shell instance for this script. If you have extra garbage on that line, you won't be able to run the script at all. You will get the blinking light for a few seconds while the contentlister is trying to start the script, and then it will exit. It will never even get to running the application.

You can safely remove this top line, since the contentlister starts a new shell for your script anyway. There's a good chance the rest of the script will parse correctly.

As for the automatic connection, it sounds like you're defaulting to a wired profile. Check your preferences and make sure that the iLiad is set to connect to iDS, and not to your computer. Then, just once, start a manual connection to iDS(hold down the upper right key); make sure you check the wireless button, and connect succesfully. The connectionMgr defaults to using the last successful profile, and if you've told the iLiad to go to iDS, and told iDS to use wireless, it will start the wireless connection every time.

Also, it occurs to me we could be a bit more conservative and try something like:
Code:
if connectionMgr --background --stay-connected;
then iNewsstand; 
fi;
/usr/bin/wired.sh stop
/usr/bin/wireless.sh stop
The last two calls are much faster than invoking the connectionMgr again, so the contentlister comes back sooner.

I love having this app on my iLiad

Last edited by rodin; 01-14-2008 at 04:51 PM.
rodin is offline   Reply With Quote