mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-25 09:49:20 +00:00
Root-Check is active event when motd is none
git-svn-id: https://svn.fhem.de/fhem/trunk@1669 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1cbd7ab6dc
commit
a0a3d8cc67
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user