[PC-BSD Commits] r21656 - pcbsd-projects/PCDM

svn at pcbsd.org svn at pcbsd.org
Tue Feb 26 15:06:28 PST 2013


Author: kenmoore
Date: 2013-02-26 23:06:28 +0000 (Tue, 26 Feb 2013)
New Revision: 21656

Modified:
   pcbsd-projects/PCDM/PCDMd
Log:
Fix a few minor bugs in the new PCDM daemon



Modified: pcbsd-projects/PCDM/PCDMd
===================================================================
--- pcbsd-projects/PCDM/PCDMd	2013-02-26 20:58:50 UTC (rev 21655)
+++ pcbsd-projects/PCDM/PCDMd	2013-02-26 23:06:28 UTC (rev 21656)
@@ -11,21 +11,21 @@
 if [ "`cat /usr/local/share/PCDM/pcdm.conf | grep ALLOW_REMOTE_LOGIN=TRUE`" -eq "" ]; then
   # XDMCP is enabled
   xinit -- /usr/local/bin/PCDM-session :0 -displayfd /usr/local/share/PCDM/.xdisplay -indirect ${HOST}
-elif
+else
   # No XDMCP support
 
   # Allow Auto-Login the first time PCDM starts
   pcdm_ret = xinit /usr/local/bin/PCDM-session -AutoLogin -- :0
   xinit /usr/local/bin/PCDM-session -AutoLogin -- :0
-  while [ ret -eq 0 ]; do
+  while [ pcdm_ret -eq 0 ]; do
     # Always return to PCDM after a logout (prevent root shell opening)
-    ret = xinit /usr/local/bin/PCDM-session -- :0
+    pcdm_ret = xinit /usr/local/bin/PCDM-session -- :0
   done
 
-  if [ ret -eq 1 ]; then
+  if [ pcdm_ret -eq 1 ]; then
     #Restart the computer
     shutdown -r now
-  elif [ ret -eq 2 ]; then
+  elif [ pcdm_ret -eq 2 ]; then
     #Shutdown the computer
     shutdown -p now
   fi



More information about the Commits mailing list