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 "$@"
set remote_exec false
}
+# zbog testiranja lokalnog Linuxa ne zelimo automatski remoteStart
+if { $gui_unix && $gui_linux && $remote_exec } {
+ puts "you are not root (id != 0) but for our purposes you have to be"
+ exit 1
+}
#
# Read config files, the first one found: .imunesrc, $HOME/.imunesrc