#!/bin/sh
# Compatibility entry for desktops which only scan the old directory.
root="${IPKG_INSTROOT:-}"
legacy="${root}/usr/share/linkeasefull/desktop-apps.d/20-kspeeder.json"
if [ ! -e "${legacy}" ] && [ ! -L "${legacy}" ]; then
	mkdir -p "${legacy%/*}"
	ln -s /usr/share/kspeeder/kspeeder-plugin.json "${legacy}" || exit $?
fi
if [ -z "${IPKG_INSTROOT}" ]; then
	[ -f /etc/uci-defaults/istoreenhance ] && /etc/uci-defaults/istoreenhance && rm -f /etc/uci-defaults/istoreenhance
	exit 0
fi
