[Pkg-ltsp-devel] Bug#431901: ltsp-client: XDMCP and power off

Al Nikolov alnikolov at narod.ru
Thu Jul 5 20:40:41 UTC 2007


Package: ltsp-client
Severity: wishlist
Tags: patch

Since there's no possibility to power off terminal using XDMCP login 
screen, i suggest the patch below which i use by myself.

--- /opt/ltsp/i386/usr/lib/ltsp/screen.d/startx	2007-01-11 10:20:45.000000000 +0300
+++ /opt/ltsp/i386/usr/lib/ltsp/screen.d/startx-off	2007-07-06 00:37:54.000000000 +0400
@@ -153,7 +153,7 @@
 fi
 
 if [ "${XF_ARGS}" = "" ]; then
-    XF_ARGS="-query ${XDM_SERVER}"
+    XF_ARGS="-query ${XDM_SERVER} -terminate"
 fi
 
 # Do this here instead of updating the configuration file, until
@@ -173,6 +173,8 @@
     if [ $? -ne 0 ]; then
       echo -n -e "\n\rxserver failed, press <enter> to continue "
       read CMD
+    else
+      poweroff
     fi
 else
     ${XBINARY} ${ACC_CTRL}              \
@@ -182,5 +184,7 @@
     if [ $? -ne 0 ]; then
       echo -n -e "\n\rxserver failed, press <enter> to continue "
       read CMD
+    else
+      poweroff
     fi
 fi




More information about the Pkg-ltsp-devel mailing list