Subject: Bug#301: Execute commands given as arguments

From: Arnold Krille <[email-masked]>
Date: Thu, 5 Sep 2013 10:51:01 +0200

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