DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-02-05 21:19:24

qn1234
Member
Registered: 2006-08-18
Posts: 94

How to get shell to work for console

I thought this tip may be useful for some of you that modded their box for serial connection so I'd like to throw it out there.

The version of busybox that came with the firmware has quite a few issues.  But one issue that bothers me the most is ash (/bin/sh) which doesn't give me the prompt for console connection.  I mean, after the box completes its boot process the console screen sits there like it's hanging.  Quite frustrated.

Here's what I added at the end of the fun_plug script to get the prompt after booting:

Code:

rm /bin/sh
ln -sf /mnt/HD_a2/bin/bash /bin/sh
(sleep 10; /mnt/HD_a2/bin/killall -9 sh) &

10 seconds delay might be a bit too long, but it seems to work for me.   After sh got killed it will get respawned and this time it's bash.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB