]> git.entuzijast.net Git - imunes.git/commitdiff
zbog testiranja lokalnog Linuxa ne zelimo automatski remoteStart
authornuma <numa@numa-ubuntu-vm.(none)>
Mon, 31 Aug 2009 11:31:31 +0000 (13:31 +0200)
committerJosip Rodin <joy@CNZGRIJRL.carpriv.carnet.hr>
Fri, 4 Sep 2009 19:04:36 +0000 (21:04 +0200)
(cherry picked from commit 7a31fd761f4d382e68be839a68ec3cfab376542d)

Signed-off-by: Josip Rodin <joy@CNZGRIJRL.carpriv.carnet.hr>
imunes

diff --git a/imunes b/imunes
index 595ba99816da1a12678407734ac01307d129a374..8377e7d4fd009c0cdb0672a9dd542e33349ef4e0 100755 (executable)
--- a/imunes
+++ b/imunes
@@ -38,6 +38,9 @@ LIBDIR=""
 
 imunes=$ROOTDIR/$LIBDIR/imunes.tcl
 
+# zbog testiranja lokalnog Linuxa ne zelimo automatski remoteStart
+test `id -u` = 0 || { echo 'you are not root (id != 0)'; exit 1; }
+
 case $1 in 
 -b | --batch) 
     exec tclsh8.4 $imunes "$@"