![]() |
sh removed that responsible to run most programs
hi all
I was installing a script with make [scriptname] then I had a problem the shell interpreter sh replaced by scriptname so when I type sh that script will be executed instead now I cannot connect to 3G and most application don't run even I cannot connect to my N900 through ssh because sh is removed I searched in google I found maybe a soultion to change sh with bash by editing /etc/shells BUT the problem that I cannot even run xterminal so I had an idea that I edit /etc/shells by script that in deb package created or put sh under /bin/ and Install deb package which does this Please help me my N900 is screwed up |
Re: sh removed that responsible to run most programs
You probably need to reflash, but see if anyone else has any ideas first.
|
Re: sh removed that responsible to run most programs
Have an editor installed? Try open/edit /etc/shells with it. I guess you ain't installed backupmenu which could be helpful by booting into it's own set of binaries.
But at least you could create a debian package which just fixes the symlink pointing from sh to bash/busybox/whatever. |
Re: sh removed that responsible to run most programs
I have an editor leafpad but I cannot browse to / or /etc/shell
too bad the reflash will wipeout all my files on MyDocs now I even I cannot open MyDocs using USB on windows |
Re: sh removed that responsible to run most programs
install bash3 or bash4 from HAM/Fapman and you should have a shell (bash4 substitutes for default if I remember correctly), at least in theory osso-xterm should open bash for you to fix it (or stay with it)
|
Re: sh removed that responsible to run most programs
Alternatively, this thread might help you:
http://talk.maemo.org/showthread.php?t=77497 Cause of problem different, but should work if bash4 fails. |
Re: sh removed that responsible to run most programs
Quote:
please tell me if there is a way I can flash without losing files ? does flashing rootfs only solve the problem ? |
Re: sh removed that responsible to run most programs
Yes, flashing rootfs alone leaves MyDocs intact.
What happens when u use shortcut for xterm, Ctrl+Shift+x? |
Re: sh removed that responsible to run most programs
Quote:
nothing happens with that shortcut it closes with internal error message :( I was on ssh connecting to n900 from PC I was still in terminal but I went outside the room for 5 minutes and Autodisconnect disconnected the connection |
Re: sh removed that responsible to run most programs
You cannot connect to internet without sh???
Were you manually setting up your connection? Hildon internet connection widget (status area) should work without problem. Also HAM as in the post I linked someone managed to install mksh without sh/bash. Check your installed progs, whether it is fapman or application manager install some shell from it and try to run it from menu. If you reflash, first thing to install is backupmenu, create a clean backup if you like to play with scripts, will save you time |
Re: sh removed that responsible to run most programs
also, if you have no internet on phone DL through connection you use for posting here osso-xterm deb file from maemo.repository(ies?).org, transfer with bluetooth and choose open with ham when dialog appears, no sh should be required in those steps.
|
Re: sh removed that responsible to run most programs
when open deb file with app manager it says file corrupted it can't install anything I think
I am out of luck or this is a very challenging issue |
Re: sh removed that responsible to run most programs
LOL I turned the phone off I wanted to see I cannot even boot without sh WTF !
I need know to find a workaround to flash it on windows 7 64-bit . FML |
Re: sh removed that responsible to run most programs
what script did that to you, plese share
|
Re: sh removed that responsible to run most programs
crunch compiled for arm
crunch I found it here on TMO , crunch is wordlist generator |
All times are GMT. The time now is 00:02. |
vBulletin® Version 3.8.8