From: Silvio Rhatto Date: Sun, 25 Aug 2013 21:32:52 +0000 (-0300) Subject: Shell script: local root shell X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d4a78c27322190b4bb581fe1c52bc818e3158ab1;p=scripts.git Shell script: local root shell --- diff --git a/shell b/shell index d8ff48f..f6319a8 100755 --- a/shell +++ b/shell @@ -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