#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] && exit 0
/bin/rm -f /usr/sbin/zeroblock-tg
/etc/init.d/zeroblock-tg enable 2>/dev/null
/etc/init.d/zeroblock-tg restart 2>/dev/null
(
	/bin/sleep 1
	/bin/ubus call zeroblock reload '{"scope":"versions"}'
) >/dev/null 2>&1 &
exit 0
