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