#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
	# Restart rpcd to load the new backend
	/etc/init.d/rpcd restart
	# Clear LuCI cache
	rm -rf /tmp/luci-modulecache /tmp/luci-indexcache 2>/dev/null
	echo "SecuBox CrowdSec Dashboard installed."
	echo "Access via Services -> CrowdSec in LuCI."
}
exit 0
