applications: enable related init scripts on opkg install, otherwise users would...
[project/luci.git] / applications / luci-p2pblock / ipkg / postinst
1 #!/bin/sh
2 [ -n "${IPKG_INSTROOT}" ] || {
3         ( . /etc/uci-defaults/luci-p2pblock ) && rm -f /etc/uci-defaults/luci-p2pblock
4         /etc/init.d/freifunk-p2pblock enabled || /etc/init.d/freifunk-p2pblock enable
5 }