![]() |
#1 |
Connoisseur
![]() Posts: 66
Karma: 10
Join Date: Oct 2007
Device: iRex iLiad V1
|
Can't run my first script
I'm trying to run a script to start dropbear, using the code found on this thread.
It looks like this #!/bin/sh /etc/init.d/dropbear start Then I created this manifest: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <package> <metadata> <dc-metadata> <Title>startDropBear</Title> <Description>start ssh</Description> <Date>2008-01-24T12:01:46</Date> </dc-metadata> <y-metadata> <startpage>startDropBear.sh</startpage> </y-metadata> </metadata> </package> The icon of the directory is the one of the big X, meaning that I can do nothing with it. I verified using mrxvt that command /etc/init.d/dropbear start run from the shell does work. Where am I wrong? |
![]() |
![]() |
![]() |
#2 |
iLiad Maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,382
Karma: 2369
Join Date: Apr 2006
Location: Germany
Device: Bookeen Opus (i love that thing) and iPad (what an irony)
|
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` |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Connoisseur
![]() Posts: 66
Karma: 10
Join Date: Oct 2007
Device: iRex iLiad V1
|
Quote:
#!/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? |
|
![]() |
![]() |
![]() |
#4 |
iLiad Maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,382
Karma: 2369
Join Date: Apr 2006
Location: Germany
Device: Bookeen Opus (i love that thing) and iPad (what an irony)
|
PHP Code:
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Did you start your wired connection or wireless connection beforehand?
If not, you should start from "usr/bin/wired.sh" and "/usr/bin/wireless.sh". I am looking for ways to execute dropbear on memory card, without copying any files to internal memory. Any help is welcome. Edited: I solved my problem. A package is uploaded with the "Unbrickable" thread. Last edited by ericshliao; 01-28-2008 at 10:53 AM. |
![]() |
![]() |
Advert | |
|
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
run script on wifi connect | sinisterguy | Kindle Developer's Corner | 1 | 10-18-2010 03:46 PM |
Universal Flasher run script | Jamp | Sony Reader Dev Corner | 1 | 08-26-2009 09:34 AM |
Search Script | Gibbo | Lounge | 7 | 03-30-2009 04:36 PM |