summaryrefslogtreecommitdiffhomepage
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/package/olsrd-luci/ipkg/postinst4
1 files changed, 3 insertions, 1 deletions
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
+}