summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/olsrd-luci/ipkg
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-12-09 00:03:08 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-12-09 00:03:08 +0000
commitf7a3e34955fdcf9678fd0a5e18c8b06b6fc6b244 (patch)
treebfd1eb5781003110187545a1ea57d849fe0eb987 /contrib/package/olsrd-luci/ipkg
parent08fc73b8a6bb87c4094188fb60ebaed88c82d4c7 (diff)
prevent package upgrade failures caused by sloppy postinstalls
Diffstat (limited to 'contrib/package/olsrd-luci/ipkg')
-rwxr-xr-xcontrib/package/olsrd-luci/ipkg/postinst4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/package/olsrd-luci/ipkg/postinst b/contrib/package/olsrd-luci/ipkg/postinst
index cd38fcfaf0..c96480c2e3 100755
--- a/contrib/package/olsrd-luci/ipkg/postinst
+++ b/contrib/package/olsrd-luci/ipkg/postinst
@@ -1,7 +1,5 @@
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
- /etc/init.d/olsrd enable
-
- exit 0
+ /etc/init.d/olsrd enabled || /etc/init.d/olsrd enable
}