From: Florian Fainelli Date: Sat, 8 Mar 2008 09:32:28 +0000 (+0000) Subject: Successfully exit from the postinst script if the /etc/services entry already exists... X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c0f147882a0bea421ad0ef1a0b7ff1c2dcc74407;p=openwrt%2Fsvn-archive%2Fpackages.git Successfully exit from the postinst script if the /etc/services entry already exists (#3191) SVN-Revision: 10568 --- diff --git a/net/openntpd/Makefile b/net/openntpd/Makefile index 1629957f8..ba7e847e3 100644 --- a/net/openntpd/Makefile +++ b/net/openntpd/Makefile @@ -73,7 +73,7 @@ if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then fi grep -q '^ntp[[:space:]]*123/udp' $${IPKG_INSTROOT}/etc/services 2>/dev/null -[ $$? -ne 0 ] && echo "ntp 123/udp" >>$${IPKG_INSTROOT}/etc/services +[ $$? -ne 0 ] && echo "ntp 123/udp" >>$${IPKG_INSTROOT}/etc/services || exit 0 endef define Build/Configure