I don't think you know what I'm trying to achieve. This is of course my own fault....
I installed twonky (a uPnP server) on my satellite receiver and it comes with a startup-script. I want to preserve this script as much as possible.
In my rcS I've added the line:
Code:
[ -e /usr/local/TwonkyVision/twonkymedia.sh ] && /usr/local/TwonkyVision/twonkymedia.sh start &
Because my satellite receiver needs all the resources it can get during startup, I don't want twonky to slow it down.
Adding this line in the start segment of twonkymedia.sh I can achieve this goal:
Code:
uptime | grep -q " min" && sleep 120
If the script is started by hand and without the &, I don't want it to introduce this 2 minute pause.
It's not really a problem, but I was presented with the problem and still would like to know the solution....