Add commandline option to bash in order to support "lxcsu <slicename>"
Sapan Bhatia [Mon, 1 Jul 2013 15:30:53 +0000 (11:30 -0400)]
lxcsu

diff --git a/lxcsu b/lxcsu
index 560b9bf..742fc83 100755 (executable)
--- a/lxcsu
+++ b/lxcsu
@@ -4,6 +4,7 @@ import os
 import sys
 
 from argparse import ArgumentParser
+
 LXCSU_INTERNAL='/usr/sbin/lxcsu-internal'
 
 def main ():
@@ -18,7 +19,7 @@ def main ():
         commands = ['/bin/sh']
 
 
-    exec_args = [LXCSU_INTERNAL,slice_name,'--']
+    exec_args = [LXCSU_INTERNAL,slice_name,'--','-c']
     exec_args+=commands
     os.execv(LXCSU_INTERNAL,exec_args)