Browse Source

batman: Don't expose any errors from checking DHCP daemon's status

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 5 months ago
parent
commit
34aa0e91f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      batman/ff_check_gateway

+ 1 - 1
batman/ff_check_gateway

@@ -26,7 +26,7 @@ fi
 #
 # If there is no DHCP server running here, we should not be an
 # active gateway.
-if ! systemctl status isc-dhcp-server >/dev/null; then
+if ! systemctl status isc-dhcp-server >/dev/null 2>&1; then
 	force_offline="true"
 fi