Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2005 13:08:50 +0100
From:      Xian <ian@codepad.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Shutting down [k|g]dm for a short while?
Message-ID:  <200505131308.50805.ian@codepad.net>
In-Reply-To: <20050513065243.GD7977@orthanc.st.hmc.edu>
References:  <20050513065243.GD7977@orthanc.st.hmc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505131308.50805.ian>