From owner-freebsd-questions@FreeBSD.ORG Fri May 13 12:09:01 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 835A816A4CE for ; Fri, 13 May 2005 12:09:01 +0000 (GMT) Received: from pih-relay05.plus.net (pih-relay05.plus.net [212.159.14.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1645C43D39 for ; Fri, 13 May 2005 12:09:01 +0000 (GMT) (envelope-from ian@codepad.net) Received: from [80.229.159.44] (helo=hercules.codepad.net) by pih-relay05.plus.net with esmtp (Exim) id 1DWYyP-0004qr-LR for freebsd-questions@freebsd.org; Fri, 13 May 2005 13:08:59 +0100 From: Xian To: freebsd-questions@freebsd.org Date: Fri, 13 May 2005 13:08:50 +0100 User-Agent: KMail/1.8 References: <20050513065243.GD7977@orthanc.st.hmc.edu> In-Reply-To: <20050513065243.GD7977@orthanc.st.hmc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505131308.50805.ian@codepad.net> Subject: Re: Shutting down [k|g]dm for a short while? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 12:09:01 -0000 On Friday 13 May 2005 07:52, Mac Mason wrote: > I run kdm on ttyv8, as recommended by the handbook. > > % grep kdm /etc/ttys > ttyv8 "/usr/local/bin/kdm -nodaemon" xterm on secure > > I'm also using the closed-source nvidia drivers. To upgrade them requires > that I unload nvidia.ko. > > Which I can't do with kdm running, because it needs that module. > > The only solution I can come up with it to edit /etc/ttys, reboot, upgrade > the drivers, change /etc/ttys back, and boot again. > > Is there a cleaner way of doing this? > > Thanks! > > --Mac You can edit /etc/ttys to turn off the appropriate tty, then SIGHUP init (pid 1). You might have to kill [k|g]dm afterwards as well. Then when your done, enable the tty, and SIGHUP init again. -- /Xian "Failure is only the opportunity to begin again more inteligently" Henry Ford