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