[BusyBox] Init question

Vladimir N. Oleynik dzo at simtreas.ru
Wed Jun 26 06:14:03 UTC 2002


Michael,

> I want to temporarily disable mgetty (for
> example for sending init string to modem).
> 
> How can I do it ?
> I tried to comment strings that respawns mgetty in inittab
> and then send SIGHUP to init - it did no work.

Micro HOWTO:

to /etc/inittab

ttS1::respawn:/bin/sh /etc/modem.sh

to /etc/modems.sh

#!/bin/sh
#hostname pap-hostname
#pppd connect 'chat -v TIMEOUT 60 "" ATDP5555555 CONNECT ""' /dev/ttyS1 38400
defaultroute
#hostname router-hostname
sleep 1000


You can now change /etc/modems.sh in realtime (move '#') ;)


--w
vodz



More information about the busybox mailing list