#!/bin/sh
# Maintain the old desktop entry without a second manifest or file owner.
root="${IPKG_INSTROOT:-}"
sh "${root}/usr/share/ddnsto/register-desktop.sh" || exit $?
icon="${root}/usr/share/linkeasefull/app-meta/ddnsto/logo.png"
if [ "$(readlink "${icon}" 2>/dev/null)" = "/www/luci-static/resources/app-icons/ddnsto.png" ]; then
 rm -f "${icon}"
fi
rmdir "${root}/usr/share/linkeasefull/app-meta/ddnsto" "${root}/usr/share/linkeasefull/app-meta" 2>/dev/null || true
if [ -z "${IPKG_INSTROOT}" ]; then
 rm -f /tmp/luci-indexcache /tmp/luci-indexcache.*
 rm -rf /tmp/luci-modulecache/
fi
exit 0
