Fix for newer versions of pfSense.

Support newer versions of pfSense without pfSense_ngctl_attach.

Relates to #67
This commit is contained in:
James Gilliland 2022-05-02 09:20:38 -05:00
parent 5aa5d85f40
commit 015a8cf913

View file

@ -18,8 +18,10 @@ getTimestamp(){
echo "$(getTimestamp) RG_ETHER_ADDR: $RG_ETHER_ADDR" echo "$(getTimestamp) RG_ETHER_ADDR: $RG_ETHER_ADDR"
echo -n "$(getTimestamp) attaching interfaces to ng_ether... " echo -n "$(getTimestamp) attaching interfaces to ng_ether... "
/usr/local/bin/php -r "pfSense_ngctl_attach('.', '$ONT_IF');" # Only needed for older versions of pfatt. Newer versions handle this automatically.
/usr/local/bin/php -r "pfSense_ngctl_attach('.', '$RG_IF');" # Eventually this can be remove.
/usr/local/bin/php -r "function_exists('pfSense_ngctl_attach') && pfSense_ngctl_attach('.', '$ONT_IF');"
/usr/local/bin/php -r "function_exists('pfSense_ngctl_attach') && pfSense_ngctl_attach('.', '$RG_IF');"
echo "OK!" echo "OK!"
echo "$(getTimestamp) building netgraph nodes..." echo "$(getTimestamp) building netgraph nodes..."