Subject: bin/12456: Allow kdm as display manager
To: None <gnats-bugs@gnats.netbsd.org>
From: None <martti.kuparinen@iki.fi>
List: netbsd-bugs
Date: 03/23/2001 11:57:02
>Number:         12456
>Category:       bin
>Synopsis:       Allow kdm as display manager
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 23 01:58:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Martti Kuparinen
>Release:        1.5
>Organization:
piuha.net
>Environment:
	
System: NetBSD ws20 1.5 NetBSD 1.5 (WS20) #3: Fri Feb 16 14:03:57 EET 2001 root@ws20:/usr/src/sys/arch/i386/compile/WS20 i386


>Description:

I'm using KDE's kdm to display a graphical login window. To activate this
feature, add the following kdm file into /etc/rc.d, apply the following
patch to /etc/defaults/rc.conf and add kdm=YES into /etc/rc.conf

>How-To-Repeat:
	
>Fix:

==============================================================================
#!/bin/sh
#
# $NetBSD$
#

# PROVIDE: kdm
# REQUIRE: DAEMON LOGIN wscons
# KEYWORD: shutdown

. /etc/rc.subr

name="kdm"
rcvar=$name
command="/usr/X11R6/bin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/usr/X11R6/share/kde/config/kdmrc"
extra_commands="reload"

load_rc_config $name
run_rc_command "$1"
==============================================================================
--- rc.conf.orig	Fri Mar 23 11:45:59 2001
+++ rc.conf	Fri Mar 23 11:47:16 2001
@@ -138,6 +138,8 @@
 xfs=NO			xfs_flags=""		# X11 font server
 xdm=NO			xdm_flags=""		# X11 display manager; needs
 						# wscons=YES for local displays.
+kdm=NO			kdm_flags=""		# KDE display manager; needs
+						# wscons=YES for local displays.
 
 # YP (NIS) daemons.
 #
>Release-Note:
>Audit-Trail:
>Unformatted: