source: src-qt4/PCDM/PCDMd @ 39fe8b0

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 39fe8b0 was 39fe8b0, checked in by Kris Moore <kris@…>, 15 months ago

Update PCDM to use pcdm.conf out of /usr/local/etc/

  • Property mode set to 100755
File size: 867 bytes
Line 
1#!/bin/sh
2# Login daemon for PCDM
3# This listens for system login prompts and starts the main PCDM UI appropriately
4#------------------------------------
5
6PCDMCONF="/usr/local/etc/pcdm.conf"
7
8#See if XDMCP support is enabled for logging in to this system
9XDMCP=`grep "^ALLOW_REMOTE_LOGIN=" ${PCDMCONF} 2>/dev/null | cut -d '=' -f 2`
10if [ "XDMCP" = "TRUE" ]; then
11  # XDMCP is enabled
12  echo "Starting PCDM XDMCP Server"
13  while [ ! -e /var/run/nologin ]; do
14    xinit /usr/local/bin/PCDM-session --once -- /usr/local/bin/X :0 -displayfd /usr/local/share/PCDM/.xdisplay -indirect ${HOST}
15  done
16else
17  # No XDMCP Enabled
18
19  # Allow Auto-Login the first time PCDM starts
20  touch /tmp/.PCDMAUTOLOGINFILE
21  # Now start the X Server
22  while [ ! -e /var/run/nologin ]; do
23    /usr/local/bin/pc-checkxdisplay
24    xinit /usr/local/bin/PCDM-session --once -- :0 
25  done
26fi
27       
Note: See TracBrowser for help on using the repository browser.