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