Hi,

i have created a rcNG-Skript to enable KDM via rc.conf.
Works perfect here :)

It would be nice to integrate into the kdebase.

Greetings,
Marcel

--->
#!/bin/sh
#

# PROVIDE: kdm
# REQUIRE: DAEMON LOGIN moused

# The following variables are provided to control startup of KDM in
# rc configuration file (eg /etc/rc.conf):
# kdm_enable (bool):    Set to "NO" by default.
#                       Set it to "YES" to enable KDM
#
# kdm_wait:             Waiting time to start KDM.
#                       Default is 5 seconds.
#                       If KDM starts too fast, keyboard is disabled.
#
# Please see kdm(1), rc.conf(5) and rc(8) for further details.

. /etc/rc.subr

name="kdm"
rcvar=`set_rcvar`
pidfile="/var/run/${name}.pid"
stop_cmd="kdm_stop"
start_cmd="kdm_start"

PREFIX=/usr/local

# Set defaults
[ -z "$kdm_enable" ] && kdm_enable="NO"
[ -z "$kdm_wait" ] && kdm_wait="5"

kdm_start()
{
        echo "Starting kdm."
        (/bin/sleep ${kdm_wait}; ${PREFIX}/bin/kdm 2>/dev/null) &
}

kdm_stop()
{
        echo "Stopping kdm."
        /usr/bin/killall -m kdm-bin 2>/dev/null
}

load_rc_config $name
run_rc_command "$1"

<----
_______________________________________________
kde-freebsd mailing list
[email protected]
http://freebsd.kde.org/mailman/listinfo/kde-freebsd

Reply via email to