Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Dave Aldridge 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.
-
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
-
>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?).
-
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