#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
	# Enable and start ndpid-compat service
	/etc/init.d/ndpid-compat enable 2>/dev/null
	/etc/init.d/ndpid-compat start 2>/dev/null
	# Restart RPCD to register new methods
	/etc/init.d/rpcd restart
	rm -rf /tmp/luci-modulecache /tmp/luci-indexcache 2>/dev/null
	echo "nDPId Dashboard installed."
}
exit 0
