diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-08-25 18:32:52 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-08-25 18:32:52 -0300 |
commit | d4a78c27322190b4bb581fe1c52bc818e3158ab1 (patch) | |
tree | 9a41cc99d0652b76dad1730f969b130d3de74850 /shell | |
parent | fa96f3264871a023b703787cc16816b35fb9ce15 (diff) | |
download | scripts-d4a78c27322190b4bb581fe1c52bc818e3158ab1.tar.gz scripts-d4a78c27322190b4bb581fe1c52bc818e3158ab1.tar.bz2 |
Shell script: local root shell
Diffstat (limited to 'shell')
-rwxr-xr-x | shell | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -22,6 +22,9 @@ else if [ -z "$COMMAND" ] && screen -ls $DEST | grep -q "There is a screen on"; then # Local existing screen shell wscreen $DEST + elif [ -z "$COMMAND" ] && [ "$DEST" == "root" ]; then + # Local root shell + sudo screen -x elif [ "$DEST" == "local" ]; then # Local screen shell wscreen $COMMAND |