source: src-qt4/PCDM/PCDMd @ b1457e5

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since b1457e5 was b1457e5, checked in by Ken Moore <ken@…>, 18 months ago

Finish cleaning up the new shutdown procedure stuff for PCDM.

  • Property mode set to 100755
File size: 845 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
6#See if XDMCP support is enabled for logging in to this system
7if [ -f /usr/local/share/PCDM/pcdm.conf .and. -z "`grep ALLOW_REMOTE_LOGIN=TRUE /usr/local/share/PCDM/pcdm.conf`" ];
8then
9  # XDMCP is enabled
10  echo "Starting PCDM XDMCP Server"
11  while [ ! -e /var/run/nologin ]; do
12    xinit /usr/local/bin/PCDM-session --once -- /usr/local/bin/X :0 -displayfd /usr/local/share/PCDM/.xdisplay -indirect ${HOST}
13  done
14else
15  # No XDMCP support
16
17  # Allow Auto-Login the first time PCDM starts
18  touch /tmp/.PCDMAUTOLOGINFILE
19  # Now start the X Server
20  while [ ! -e /var/run/nologin ]; do
21    /usr/local/bin/pc-checkxdisplay
22    xinit /usr/local/bin/PCDM-session --once -- :0 
23  done
24fi
25       
Note: See TracBrowser for help on using the repository browser.