	#!/bin/sh
	# remove old services file entries
	/bin/sed -i '/no-ip\.com/d' ${IPKG_INSTROOT}/etc/ddns/services	>/dev/null 2>&1
	# and create new
	printf "%s\\t%s\\n" '"no-ip.com"' '"update_no-ip_com.sh"' >> ${IPKG_INSTROOT}/etc/ddns/services
	# on real system restart service if enabled
	[ -z "${IPKG_INSTROOT}" ] && {
		[ -x /etc/uci-defaults/ddns_no-ip_com ] && /etc/uci-defaults/ddns_no-ip_com && rm -f /etc/uci-defaults/ddns_no-ip_com >/dev/null 2>&1
		/etc/init.d/ddns enabled && /etc/init.d/ddns start >/dev/null 2>&1
	}
	exit 0	# suppress errors
