From f8a512ac5f327d0005bd1b6117100711a085234f Mon Sep 17 00:00:00 2001 From: Travis Cotton Date: Tue, 20 Feb 2024 11:22:30 -0700 Subject: [PATCH] fixed if line failures --- dnsmasq-dhcpd-dynamic/update_loop.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dnsmasq-dhcpd-dynamic/update_loop.sh b/dnsmasq-dhcpd-dynamic/update_loop.sh index a86ab55..9396669 100644 --- a/dnsmasq-dhcpd-dynamic/update_loop.sh +++ b/dnsmasq-dhcpd-dynamic/update_loop.sh @@ -2,7 +2,8 @@ while true do smd.py rc=$? - if [$rc -e 1]; then + if [[ $rc -eq 1 ]] + then kill -1 $(pgrep dnsmasq) fi sleep 10