summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ddns/ipkg/postinst-pkg
blob: 938f746f703a3a973f782b93f000fdcb85e7b91a (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
	# luci updates are not in sync with ddns-script updates !!!
	# needed because luci update might delete helper script
	# copy dynamic_dns_helper.tmp.sh from ddns-scripts
	cp -f /usr/lib/ddns/dynamic_dns_lucihelper.tmp.sh /usr/lib/ddns/dynamic_dns_lucihelper.sh

	( . /etc/uci-defaults/luci-ddns ) && rm -f /etc/uci-defaults/luci-ddns
	exit 0
}