Need to get rid of that 1st 'echo'
SHOREWALL/findgw
svc_status=$( systemctl is-active wickedd-dhcp4.service )
- echo $svc_status
if [ $svc_status == 'active' ]; then
data="/var/lib/wicked/lease-${1}-dhcp-ipv4.xml"
if [ -f $data ]; then
gateway=$( xml_grep 'gateway' $data --text_only )
echo $gateway
fi
fi
otherwise, it incorrectly assigns
SW_ETH0_GATEWAY='active XX.XX.XX.XX'
once removed,
SW_ETH0_GATEWAY='XX.XX.XX.XX'
works
------------------------------------------------------------------------------
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users