applications: enable related init scripts on opkg install, otherwise users would...
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Jun 2009 20:00:50 +0000 (20:00 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 8 Jun 2009 20:00:50 +0000 (20:00 +0000)
applications/luci-asterisk/ipkg/postinst
applications/luci-hd_idle/ipkg/postinst
applications/luci-mmc_over_gpio/ipkg/postinst
applications/luci-olsr/ipkg/postinst
applications/luci-p2pblock/ipkg/postinst
applications/luci-p910nd/ipkg/postinst
applications/luci-polipo/ipkg/postinst
applications/luci-ushare/ipkg/postinst
applications/luci-uvc_streamer/ipkg/postinst

index 68f2b1a..950c7da 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
 [ -n "${IPKG_INSTROOT}" ] || {
        ( . /etc/uci-defaults/luci-asterisk ) && rm -f /etc/uci-defaults/luci-asterisk
+       /etc/init.d/asterisk enabled || /etc/init.d/asterisk enable
 }
index 4c3b4dc..835dc23 100644 (file)
@@ -1,4 +1,5 @@
 #!/bin/sh
 [ -n "${IPKG_INSTROOT}" ] || {
-        ( . /etc/uci-defaults/luci-hd_idle ) && rm -f /etc/uci-defaults/luci-hd_idle
+       ( . /etc/uci-defaults/luci-hd_idle ) && rm -f /etc/uci-defaults/luci-hd_idle
+       /etc/init.d/hd-idle enabled || /etc/init.d/hd-idle enable
 }
index cf16b8a..d88cfb9 100644 (file)
@@ -1,4 +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
 }
index d2a7774..77e13dc 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
 [ -n "${IPKG_INSTROOT}" ] || {
        ( . /etc/uci-defaults/luci-olsr ) && rm -f /etc/uci-defaults/luci-olsr
+       /etc/init.d/olsrd enabled || /etc/init.d/olsrd enable
 }
index b097c29..4926583 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
 [ -n "${IPKG_INSTROOT}" ] || {
        ( . /etc/uci-defaults/luci-p2pblock ) && rm -f /etc/uci-defaults/luci-p2pblock
+       /etc/init.d/freifunk-p2pblock enabled || /etc/init.d/freifunk-p2pblock enable
 }
index d16d5cc..768e7dd 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
 }
index 1640887..0b84b0d 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
 [ -n "${IPKG_INSTROOT}" ] || {
        ( . /etc/uci-defaults/luci-polipo ) && rm -f /etc/uci-defaults/luci-polipo
+       /etc/init.d/polipo enabled || /etc/init.d/polipo enable
 }
index f392489..0309e3e 100644 (file)
@@ -1,4 +1,5 @@
 #!/bin/sh
 [ -n "${IPKG_INSTROOT}" ] || {
        ( . /etc/uci-defaults/luci-ushare ) && rm -f /etc/uci-defaults/luci-ushare
+       /etc/init.d/ushare enabled || /etc/init.d/ushare enable
 }
index 492bc85..d0cf7fe 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
 [ -n "${IPKG_INSTROOT}" ] || {
-        ( . /etc/uci-defaults/luci-uvc_streamer ) && rm -f /etc/uci-defaults/luci-uvc_streamer
+       ( . /etc/uci-defaults/luci-uvc_streamer ) && rm -f /etc/uci-defaults/luci-uvc_streamer
+       /etc/init.d/uvc-streamer enabled || /etc/init.d/uvc-streamer enable
 }