luci-0.8: merge r4806
[project/luci.git] / applications / luci-p2pblock / ipkg / postinst
index b097c29..4926583 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
 }