View Single Post
Old 01-24-2008, 10:31 AM   #3
ragdoll
Connoisseur
ragdoll began at the beginning.
 
Posts: 66
Karma: 10
Join Date: Oct 2007
Device: iRex iLiad V1
Quote:
Originally Posted by tribble View Post
The X icon means only, that there is no standard icon associated with the sh files. It should work anyway.

Maybe putting this on line 2 will help:
scriptdir=`/usr/bin/dirname $0`
This is the new code, now working:
#!/bin/sh
export DISPLAY=:0
export scriptdir=`/usr/bin/dirname $0`
cd $scriptdir
/etc/init.d/dropbear start

I copied lines 2-4 from mrxvt's run.sh code. I think lines 2 and 4 are not necessary. I suspect that line 1 is also useless. Am I right?
The meaning of line 3 is to tell the machine that the script is executable from the current directory. Right?
And the meaning of lines 2 and 4?
ragdoll is offline   Reply With Quote