source: src-qt4/PCDM/PCDMd @ 6e8238f

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

Clean up the PCDM autostart functionality a bit, as well as the restart daemon

  • Property mode set to 100755
File size: 790 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 [ 1 ]; do
12    xinit /usr/local/bin/PCDM-session -- /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 [ 1 ]; do
21    /usr/local/bin/pc-checkxdisplay
22    xinit /usr/local/bin/PCDM-session -- :0 
23  done
24fi
25       
Note: See TracBrowser for help on using the repository browser.