Explorar o código

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

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm hai 5 meses
pai
achega
34aa0e91f5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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