#!/bin/sh
# if NOT run buildroot then stop service
[ -z "${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop				>/dev/null 2>&1
# remove services file entries
/bin/sed -i '/cloudflare\.com-v4/d' ${IPKG_INSTROOT}/etc/ddns/services		>/dev/null 2>&1
/bin/sed -i '/cloudflare\.com-v4/d' ${IPKG_INSTROOT}/etc/ddns/services_ipv6	>/dev/null 2>&1
exit 0	# suppress errors
