From owner-freebsd-questions Tue Jun 10 07:03:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA05833 for questions-outgoing; Tue, 10 Jun 1997 07:03:02 -0700 (PDT) Received: from homer.argo.net.au ([203.25.160.155]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA05816 for ; Tue, 10 Jun 1997 07:02:48 -0700 (PDT) Received: from localhost (jasonm@localhost) by homer.argo.net.au (8.8.5/8.8.5) with SMTP id VAA03518; Tue, 10 Jun 1997 21:57:02 +0800 (WST) Date: Tue, 10 Jun 1997 21:57:02 +0800 (WST) From: Jason McKay To: Matthew Hunt cc: questions@freebsd.org Subject: Re: Disconnecting for FreeBSD In-Reply-To: <19970610091350.23696@astro.psu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 10 Jun 1997, Matthew Hunt wrote: > On Tue, Jun 10, 1997 at 08:10:19PM +0800, Jason McKay wrote: > > > When a dial-up user types "exit" to logoff, it only returns them to the > > login prompt. How do we make FreeBSD hang up the modem once 'exit' is > > entered? > > I don't know exactly how you are starting ppp or pppd, but presumably > you are somehow running it from the shell or a shell script. Instead > of just running it as "ppp" or "pppd" use "exec ppp" or "exec pppd". > "exec" replaces the shell with the program that you are running. > > Hi, Ummm I am not using PPP at all, it is a shell only system ... Maybe I should have explained the problem better in my original message: When a user called via modem (their are using the bash shell), once the user finished his/her session and they type 'exit' to disconnect... The system will not hang up the modem, it will return to the login prompt. I want BSD to lower DTR and disconnect the modem instead of going back to the login prompt. - Jason.