View Single Post
Posts: 21 | Thanked: 14 times | Joined on Dec 2009 @ Turku, Finland
#269
Hi,

I have a script that freezes hildon when booting.
I resolved it with a little wrapper script that prevents it from running when uptime is less that 120 seconds.

Code:
#!/bin/sh

SAFELIMIT=120

if [ `cat /proc/uptime | awk '{ print int($1) }'` -gt $SAFELIMIT ] ; then
	genplaylists.sh /home/user/MyDocs/.sounds
else
	cat /proc/uptime | awk -v limit="$SAFELIMIT" '{print "T-",limit-int($1)}'
fi
Using this the desktop doesn't freeze when booting, just change your own script instead of the "genplaylists.sh ..." -line.
And you can decrease the safe limit also, 120 seconds is a bit overkill.
 

The Following User Says Thank You to timperi For This Useful Post: