From ed1d90ca1b88a4a793c47c2ba65de0e3cffc2fde Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sat, 30 Jun 2012 08:03:18 +0000 Subject: [PATCH] Root-Check is active event when motd is none git-svn-id: https://svn.fhem.de/fhem/trunk@1669 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 1f18a4d34..ef29d23a3 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -370,7 +370,7 @@ $init_done = 1; DoTrigger("global", "INITIALIZED"); $attr{global}{motd} .= "Running with root privileges." - if($^O !~ m/Win/ && $< == 0); + if($^O !~ m/Win/ && $<==0 && $attr{global}{motd} =~ m/^$sc_text/); $attr{global}{motd} .= "\nRestart fhem for a new check if the problem is fixed,\n". "or set the global attribute motd to none to supress this message.\n"