]> gitweb.fluxo.info Git - scripts.git/commitdiff
Adding root screen support on wscreen
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 31 May 2013 20:34:18 +0000 (17:34 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 31 May 2013 20:34:18 +0000 (17:34 -0300)
wscreen

diff --git a/wscreen b/wscreen
index dac001b296ffc5bac16480cfda98fd791bb03878..5fdde845b9f249cb425ab07cb11f7b4b29d7ae16 100755 (executable)
--- a/wscreen
+++ b/wscreen
@@ -21,6 +21,8 @@ if [ ! -z "$1" ]; then
 
   if [ "$1" == "main" ]; then
     opts=""
+  elif [ "$1" == "root" ]; then
+    sudo screen -x
   elif [ -f "$HOME/.screen/$1" ]; then
     opts="-c $HOME/.screen/$1"
   fi