trunk: remove underscores in app names (Openwrt ticket #6654)
[project/luci.git] / applications / luci-mmc-over-gpio / ipkg / postinst
diff --git a/applications/luci-mmc-over-gpio/ipkg/postinst b/applications/luci-mmc-over-gpio/ipkg/postinst
new file mode 100644 (file)
index 0000000..d88cfb9
--- /dev/null
@@ -0,0 +1,5 @@
+#!/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
+}