source: src-qt4/PCDM/PCDMd @ 68de35a

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 68de35a was 68de35a, checked in by Ken Moore <ken@…>, 10 months ago

Get the PCDM daemon and loop scripts working again. Currently restarts X every time PCDM restarts. Also make sure that pcdm.conf is saved on install rather than just pcdm.conf.sample (and fix it in the plist)

  • Property mode set to 100755
File size: 804 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 --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 [ 1 ]; 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.