From 9b70bd5b15ddca2b6655b8538fda7fc28bfd12a4 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sat, 26 Oct 2019 17:48:14 +0200 Subject: [PATCH] v6.27 + DietPi-Config | Fix No-IP online state estimation: pgrep checks for binary file without path, otherwise requires "-f" option. But since as well a manually started binary would work, outside of our systemd unit, and the systemd unit on the other hand kills every instance on stop, regardless of file path, we can and should check for the naked binary: https://github.com/MichaIng/DietPi/issues/3205 --- dietpi/dietpi-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dietpi/dietpi-config b/dietpi/dietpi-config index 4a3aee91d6..85f1824405 100644 --- a/dietpi/dietpi-config +++ b/dietpi/dietpi-config @@ -4289,7 +4289,7 @@ The following will now be applied:\n - CPU governor = Powersave\n - Display outp noip_menutext='[Offline] Enter/Setup No-IP details' # Check if No-IP is running (indicates login details are valid) - pgrep '/usr/local/bin/noip2' &> /dev/null && noip_menutext='[Online] Change No-IP details' + pgrep 'noip2' &> /dev/null && noip_menutext='[Online] Change No-IP details' fi