On Tue, Apr 7, 2009 at 12:03 PM, Joe Marcus Clarke <marcus_at_freebsd.org> wrote: > See /usr/ports/x11/gdm/files/gdm.in. This is working for GNOME users. For the interested, here's a hacked together kdm4 script, using the gdm.in above as a basis. It works here, although that isn't really saying much. :) I called it kdm4 to differentiate it from kdm from kdebase3: #!/bin/sh # PROVIDE: kdm # REQUIRE: LOGIN cleanvar moused syscons dbus hald # # Add the following to /etc/rc.conf to start KDM 4.x at boot time: # # kdm4_enable="YES" # . /etc/rc.subr kdm4_enable=${kdm4_enable-no} export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/kde4/bin:/usr/local/bin:/usr/local/sbin name="kdm" rcvar=`set_rcvar` command="/usr/local/kde4/bin/${name}" procname="/usr/local/kde4/bin/${name}-bin" pidfile="/var/run/${name}.pid" start_cmd="kdm_start" kdm_start() { echo "Starting ${name}." ( iter=0 while ! ps -axoargs | grep "^/usr/libexec/getty " | grep -qv grep >/dev/null 2>&1; do if [ ${iter} -eq 60 ]; then break fi sleep 1 iter=$(expr ${iter} + 1) done iter=0 while ! /usr/local/bin/lshal >/dev/null 2>&1 ; do if [ ${iter} -eq 60 ]; then break fi sleep 1 iter=$(expr ${iter} + 1) done ${command} ${kdm_flags} ) & } load_rc_config ${name} run_rc_command "$1" -- Freddie Cash fjwcash_at_gmail.comReceived on Wed Apr 08 2009 - 03:11:28 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:45 UTC