#!/bin/sh
root="${IPKG_INSTROOT:-}"
current="${root}/usr/share/linkeasefull/web-core/current"
owned=0
if [ "$(readlink "${current}" 2>/dev/null)" = "0.1.37/nas-full" ]; then
	owned=1
	rm -f "${current}"
fi
legacy="${root}/usr/share/linkeasefull/desktop-apps.d/device-binding.json"
if [ "${owned}" = 1 ] && [ "$(readlink "${legacy}" 2>/dev/null)" = /usr/share/linkeasefull/web-core/current/device-binding.json ]; then
	rm -f "${legacy}"
fi
exit 0
