puppet/modules/rhizo_base/files/check_mdns_route
2021-03-01 12:09:43 +01:00

10 lines
198 B
Bash

#!/bin/sh
/sbin/ip route show 239.192.23.42 | grep rhizomatica > /dev/null
if [ $? -ne 0 ]; then
/sbin/ip route add 239.192.23.42 dev rhizomatica
if [ $? -ne 0 ]; then
exit 1
fi
exit 0
fi