Koozali.org: home of the SME Server

Modem disconnect

Dave Aldridge

Modem disconnect
« on: April 05, 2000, 11:16:12 AM »
How can I disconnect the modem before the system time out occurs, preferrable in a Telnet session.

Charlie Brady

RE: Modem disconnect
« Reply #1 on: April 05, 2000, 11:51:21 AM »
Dave Aldridge wrote:

> How can I disconnect the modem before the system time out
> occurs, preferrable in a Telnet session.

You can always disconnect the modem by pulling it out of the wall socket. From a login session, as root, you can disconnect the modem using the command "killall -HUP pppd" - but the system will still dial on demand. To shut down dial-on-demand, do:

/etc/rc.d/init.d/diald stop

I'm curious as to why you want to log in and disconnect the modem...

Charlie

caleb

RE: Modem disconnect
« Reply #2 on: April 10, 2000, 01:19:30 PM »
>I'm curious as to why you want to log in and disconnect the modem...

makes a lot of sense to me. if ya have a bunch of machines and and only one phoneline, and you want to make a call/or are expecting one.  ive got 5 machines, networked, and only one phoneline, so i have to deconn if i wanna use the fone.  i live in kalamazoo, mi and we have NO broadband options (well...i guess if you consider ISDN...we do)  (no DSL, ADSL, Cable, etc...it sucks, but whattya gunna do?).

Charlie Brady

RE: Modem disconnect
« Reply #3 on: April 10, 2000, 02:30:16 PM »
caleb wrote:

> >I'm curious as to why you want to log in and disconnect the
> >modem...
>
> makes a lot of sense to me. if ya have a bunch of machines and
> and only one phoneline, and you want to make a call/or are
> expecting one.  ive got 5 machines, networked, and only one
> phoneline,

Depending how your phones are wired up, you could just pick up the phone and wait for the modem to hang up from errors.

But seriously...

In e-smith 4, there is a diald control named pipe. You can add one to e-smith 3 by adding "fifo /etc/diald/diald.ctl" to /etc/diald.conf. If you have one of those, you can drop the line
using:

echo block > /etd/diald/diald.ctl

and make it dial-on-demand again using:

echo unblock > /etc/diald/diald.ctl

Hopefully someone will make some web GUI scripts which do that, so you can drop the link without leaving your seat.

[Developers, can we make that file /var/run/diald.ctl instead? I don't think it belongs in /etc.]

> it sucks, but whattya gunna do?).

Move? But I guess there ain't no place like Kalamazoo... :-)

Charlie