system: use configctl for these tasks consistently

This commit is contained in:
Franco Fichtner 2020-01-30 20:36:19 +01:00
parent ac5dd9f4c2
commit c1573d7063
2 changed files with 3 additions and 3 deletions

View File

@ -35,6 +35,6 @@ fi
/usr/bin/logger -t dpinger "GATEWAY ALARM: ${GATEWAY} (Addr: ${2} Alarm: ${3} RTT: ${4}ms RTTd: ${5}ms Loss: ${6}%)"
echo -n "Reloading filter: "
/usr/local/opnsense/service/configd_ctl.py filter reload
configctl filter reload
exit 0

View File

@ -5,7 +5,7 @@ for IPV4 in $(find /tmp -type f -name "newwanip_*"); do
rm "${IPV4}"
echo -n "Reconfiguring IPv4 on ${INTERFACE}: "
/usr/local/opnsense/service/configd_ctl.py interface newip ${INTERFACE}
configctl interface newip ${INTERFACE}
done
for IPV6 in $(find /tmp -type f -name "newwanipv6_*"); do
@ -13,5 +13,5 @@ for IPV6 in $(find /tmp -type f -name "newwanipv6_*"); do
rm "${IPV6}"
echo -n "Reconfiguring IPv6 on ${INTERFACE}: "
/usr/local/opnsense/service/configd_ctl.py interface newipv6 ${INTERFACE}
configctl interface newipv6 ${INTERFACE}
done