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