contrib/package/olsrd-luci: remove hostname from default config
[project/luci.git] / contrib / package / olsrd-luci / ipkg / postinst
index 71986fe..c96480c 100755 (executable)
@@ -1,3 +1,5 @@
 #!/bin/sh
 
-/etc/init.d/olsrd enable
+[ -n "${IPKG_INSTROOT}" ] || {
+       /etc/init.d/olsrd enabled || /etc/init.d/olsrd enable
+}