From: Jo-Philipp Wich Date: Mon, 8 Jun 2009 20:00:50 +0000 (+0000) Subject: applications: enable related init scripts on opkg install, otherwise users would... X-Git-Tag: 0.9.0~227 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9b767cf8dfc1c404f0deb0d8eff704b2e6adeb37;p=project%2Fluci.git applications: enable related init scripts on opkg install, otherwise users would have to use the shell --- diff --git a/applications/luci-asterisk/ipkg/postinst b/applications/luci-asterisk/ipkg/postinst index 68f2b1a89f..950c7da0f1 100755 --- a/applications/luci-asterisk/ipkg/postinst +++ b/applications/luci-asterisk/ipkg/postinst @@ -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 } diff --git a/applications/luci-hd_idle/ipkg/postinst b/applications/luci-hd_idle/ipkg/postinst index 4c3b4dca8d..835dc23ad3 100644 --- a/applications/luci-hd_idle/ipkg/postinst +++ b/applications/luci-hd_idle/ipkg/postinst @@ -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 } diff --git a/applications/luci-mmc_over_gpio/ipkg/postinst b/applications/luci-mmc_over_gpio/ipkg/postinst index cf16b8a4bb..d88cfb963b 100644 --- a/applications/luci-mmc_over_gpio/ipkg/postinst +++ b/applications/luci-mmc_over_gpio/ipkg/postinst @@ -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 } diff --git a/applications/luci-olsr/ipkg/postinst b/applications/luci-olsr/ipkg/postinst index d2a77744a6..77e13dc367 100755 --- a/applications/luci-olsr/ipkg/postinst +++ b/applications/luci-olsr/ipkg/postinst @@ -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 } diff --git a/applications/luci-p2pblock/ipkg/postinst b/applications/luci-p2pblock/ipkg/postinst index b097c29cd3..4926583919 100755 --- a/applications/luci-p2pblock/ipkg/postinst +++ b/applications/luci-p2pblock/ipkg/postinst @@ -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 } diff --git a/applications/luci-p910nd/ipkg/postinst b/applications/luci-p910nd/ipkg/postinst index d16d5cc3da..768e7ddf1b 100644 --- a/applications/luci-p910nd/ipkg/postinst +++ b/applications/luci-p910nd/ipkg/postinst @@ -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 } diff --git a/applications/luci-polipo/ipkg/postinst b/applications/luci-polipo/ipkg/postinst index 16408879a1..0b84b0daf4 100755 --- a/applications/luci-polipo/ipkg/postinst +++ b/applications/luci-polipo/ipkg/postinst @@ -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 } diff --git a/applications/luci-ushare/ipkg/postinst b/applications/luci-ushare/ipkg/postinst index f3924893d3..0309e3e1a4 100644 --- a/applications/luci-ushare/ipkg/postinst +++ b/applications/luci-ushare/ipkg/postinst @@ -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 } diff --git a/applications/luci-uvc_streamer/ipkg/postinst b/applications/luci-uvc_streamer/ipkg/postinst index 492bc858c5..d0cf7fec6f 100755 --- a/applications/luci-uvc_streamer/ipkg/postinst +++ b/applications/luci-uvc_streamer/ipkg/postinst @@ -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 }