diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-11-24 11:37:24 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-11-24 11:37:24 +0100 |
commit | 91532de6179704e4c69f1580274123f5956baf03 (patch) | |
tree | 7cf060e8ae2e21ee47e38741264fddc62394d5ad /applications/luci-ddns/ipkg/postinst-pkg | |
parent | df61ddaf87170e3c7d419133dc616b2b3df13690 (diff) | |
parent | 157e8e52aef5ede350e17ce688f76fbaddea5dd2 (diff) |
Merge pull request #256 from chris5560/master
luci-app-ddns: modified to support ddns-scripts 2.1.0-2
Diffstat (limited to 'applications/luci-ddns/ipkg/postinst-pkg')
-rw-r--r-- | applications/luci-ddns/ipkg/postinst-pkg | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/applications/luci-ddns/ipkg/postinst-pkg b/applications/luci-ddns/ipkg/postinst-pkg new file mode 100644 index 000000000..938f746f7 --- /dev/null +++ b/applications/luci-ddns/ipkg/postinst-pkg @@ -0,0 +1,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 +} |