Rework LuCI build system
[project/luci.git] / applications / luci-app-polipo / ipkg / postinst
diff --git a/applications/luci-app-polipo/ipkg/postinst b/applications/luci-app-polipo/ipkg/postinst
new file mode 100755 (executable)
index 0000000..0e23e2a
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+       ( . /etc/uci-defaults/luci-polipo ) && rm -f /etc/uci-defaults/luci-polipo
+       /etc/init.d/polipo enabled || /etc/init.d/polipo enable
+       exit 0
+}