diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index 6bcf6337b..eb886764f 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -570,6 +570,10 @@ bool exec_controlscript(std::string script) bool exec_initscript(std::string script, std::string command, std::string system_command) { +#if HAVE_GENERIC_HARDWARE + if (getuid()) + dprintf(DEBUG_NORMAL,"[helpers] [%s - %d] WARNING: current user is not root!\n", __func__, __LINE__); +#endif int ret = 1; if (system_command == "service") {