summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-watchcat/ipkg/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-watchcat/ipkg/postinst')
-rw-r--r--applications/luci-watchcat/ipkg/postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/applications/luci-watchcat/ipkg/postinst b/applications/luci-watchcat/ipkg/postinst
new file mode 100644
index 0000000000..99114604ac
--- /dev/null
+++ b/applications/luci-watchcat/ipkg/postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+me="watchcat"
+[ -n "${IPKG_INSTROOT}" ] || {
+ ( . /etc/uci-defaults/luci-$me ) && rm -f /etc/uci-defaults/luci-$me
+ /etc/init.d/$me enabled || /etc/init.d/$me enable
+ exit 0
+}