Quote:
Originally Posted by tribble
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?