From 29ec36cd81f4972b66d577986ed80e603bd75aa6 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 29 Jun 2021 21:22:07 +0200 Subject: [PATCH] helpers: fix exec_initscript Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/8cb24ed24cc1840af1e537d20389fe9b4605f5a2 Author: vanhofen Date: 2021-06-29 (Tue, 29 Jun 2021) Origin message was: ------------------ - helpers: fix exec_initscript ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/system/helpers.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index 1a0c87a03..6bcf6337b 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -570,10 +570,6 @@ bool exec_controlscript(std::string script) bool exec_initscript(std::string script, std::string command, std::string system_command) { - const char* user = getenv("USER"); - if (strncmp("root", user, 4)) - dprintf(DEBUG_NORMAL, "[helpers] [%s - %d] NOTE: current user %s is not root!\n", __func__, __LINE__, user); - int ret = 1; if (system_command == "service") {