Shutting down [k|g]dm for a short while?

Xian ian at codepad.net
Fri May 13 05:09:01 PDT 2005


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


More information about the freebsd-questions mailing list