[BusyBox] shell prompt without login

Vladimir N. Oleynik dzo at simtreas.ru
Wed May 26 09:00:59 UTC 2004


Kanagesh,

> I start getty in my inittab file as follows:
> 
> null::respawn:/sbin/getty -n -L ttySA0 115200 vt100

null?

> how do Iget to the shell prompt directly?
> any help would be great :-)


Trivial hack:
make fake login program, example:

#!/bin/sh
exec login -f root

and set this fakelogin as loginprogram:

ttySA0::respawn:/sbin/getty -l /sbin/fakelogin -n -L ttySA0 115200 vt100

Its havn`t problem with secure: getty called fakelogin with root privilegies.


--w
vodz



More information about the busybox mailing list