applications: enable related init scripts on opkg install, otherwise users would...
[project/luci.git] / applications / luci-p910nd / ipkg / postinst
index d16d5cc3daf6ead66faf38b5e8ea5aee2a47b571..768e7ddf1bca07345896a0e211258f8ab5a70697 100644 (file)
@@ -1,4 +1,5 @@
 #!/bin/sh
 [ -n "${IPKG_INSTROOT}" ] || {
-        ( . /etc/uci-defaults/luci-p910nd ) && rm -f /etc/uci-defaults/luci-p910nd
+       ( . /etc/uci-defaults/luci-p910nd ) && rm -f /etc/uci-defaults/luci-p910nd
+       /etc/init.d/p910nd enabled || /etc/init.d/p910nd enable
 }