[X2Go-Dev] Bug#301: Execute commands given as arguments

Arnold Krille a.krille at b-c-s.de
Thu Sep 5 10:51:01 CEST 2013


Package: x2gothinclient

When automatically setting up the TCE via scripts, there is the need to execute
arbitrary commands inside the TCE, extend x2gothinclient_shell to run anything
given as arguments and fall back to $TC_SHELL when nothing is given.
---
 x2gothinclientmanagement/sbin/x2gothinclient_shell |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x2gothinclientmanagement/sbin/x2gothinclient_shell b/x2gothinclientmanagement/sbin/x2gothinclient_shell
index 42f4f5d..ba4ec21 100755
--- a/x2gothinclientmanagement/sbin/x2gothinclient_shell
+++ b/x2gothinclientmanagement/sbin/x2gothinclient_shell
@@ -82,7 +82,7 @@ export X2GO_HANDLE_DAEMONS=false
 
 mount /root
 
-/bin/$TC_SHELL
+${*:-/bin/$TC_SHELL}
 
 umount /root
 
-- 
1.7.9.5



More information about the x2go-dev mailing list