source: src-qt4/PCDM/PCDMd @ 1620346

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 1620346 was 1620346, checked in by Kris Moore <kris@…>, 17 months ago

Initial import of PC-BSD /current/ SVN repo

  • Property mode set to 100755
File size: 869 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 [ "`cat /usr/local/share/PCDM/pcdm.conf | grep ALLOW_REMOTE_LOGIN=TRUE`" -eq "" ]; then
8  # XDMCP is enabled
9 
10  xinit -- /usr/local/bin/PCDM-session :0 -displayfd /usr/local/share/PCDM/.xdisplay -indirect ${HOST}
11else
12  # No XDMCP support
13 
14 
15  /usr/local/bin/pc-checkxdisplay #Run PC-BSD X display check
16 
17  # Allow Auto-Login the first time PCDM starts
18  xinit /usr/local/bin/PCDM-session -AutoLogin -- :0
19  while [ 1 ]; do
20    /usr/local/bin/pc-checkxdisplay #Run PC-BSD X display check between sessions
21   
22    # Always return to PCDM after a logout (prevent root shell opening)
23    xinit /usr/local/bin/PCDM-session -- :0
24  done
25 
26fi
27       
Note: See TracBrowser for help on using the repository browser.