summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-p2pblock/ipkg/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-p2pblock/ipkg/postinst')
-rwxr-xr-xapplications/luci-app-p2pblock/ipkg/postinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/luci-app-p2pblock/ipkg/postinst b/applications/luci-app-p2pblock/ipkg/postinst
new file mode 100755
index 000000000..448025b76
--- /dev/null
+++ b/applications/luci-app-p2pblock/ipkg/postinst
@@ -0,0 +1,6 @@
+#!/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
+ exit 0
+}