mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 18:14:42 +00:00
system: use configctl for these tasks consistently
This commit is contained in:
parent
ac5dd9f4c2
commit
c1573d7063
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user