From 7651fd78f055c0f6373027d5dae1f2ce9e8db4c3 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 5 Nov 2008 22:06:27 +0000 Subject: [PATCH] * luci: fix postinstall scripts --- applications/luci-splash/ipkg/postinst | 4 +++- applications/luci-statistics/ipkg/postinst | 6 +++--- contrib/package/olsrd-luci/ipkg/postinst | 4 +++- modules/admin-core/ipkg/postinst | 9 +++++---- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/applications/luci-splash/ipkg/postinst b/applications/luci-splash/ipkg/postinst index e9c8bb12c..1e4d1793d 100755 --- a/applications/luci-splash/ipkg/postinst +++ b/applications/luci-splash/ipkg/postinst @@ -1,3 +1,5 @@ #!/bin/sh -/etc/init.d/luci_splash enable +[ -n "${IPKG_INSTROOT}" ] || { + /etc/init.d/luci_splash enable +} diff --git a/applications/luci-statistics/ipkg/postinst b/applications/luci-statistics/ipkg/postinst index 424d8c88d..536f4bb28 100755 --- a/applications/luci-statistics/ipkg/postinst +++ b/applications/luci-statistics/ipkg/postinst @@ -1,7 +1,7 @@ #!/bin/sh [ -n "${IPKG_INSTROOT}" ] || { ( . /etc/uci-defaults/luci-statistics ) && rm -f /etc/uci-defaults/luci-statistics -} -/etc/init.d/luci_statistics enable -/etc/init.d/collectd enable + /etc/init.d/luci_statistics enable + /etc/init.d/collectd enable +} diff --git a/contrib/package/olsrd-luci/ipkg/postinst b/contrib/package/olsrd-luci/ipkg/postinst index 71986fe93..288d7e40d 100755 --- a/contrib/package/olsrd-luci/ipkg/postinst +++ b/contrib/package/olsrd-luci/ipkg/postinst @@ -1,3 +1,5 @@ #!/bin/sh -/etc/init.d/olsrd enable +[ -n "${IPKG_INSTROOT}" ] || { + /etc/init.d/olsrd enable +} diff --git a/modules/admin-core/ipkg/postinst b/modules/admin-core/ipkg/postinst index c2f3b5f18..90138ae76 100755 --- a/modules/admin-core/ipkg/postinst +++ b/modules/admin-core/ipkg/postinst @@ -1,6 +1,7 @@ #!/bin/sh -/etc/init.d/luci_fixtime enable -/etc/init.d/luci_ethers enable -/etc/init.d/luci_hosts enable - +[ -n "${IPKG_INSTROOT}" ] || { + /etc/init.d/luci_fixtime enable + /etc/init.d/luci_ethers enable + /etc/init.d/luci_hosts enable +} -- 2.25.1