#!/bin/sh

#disable the Failover section
sed "/^\[Failover/I,/^\[/ s/Enable=y/Enable=n/I" -i /home/dvr/venusd.conf

#delete all failover config lines
rm /etc/ls*.conf 2>/dev/null

echo "Deleted all failover configration files and disabled failover"
echo "It would be a good idea to restart now"
