small patch from Johannes 5 Joemann
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Fri, 1 Jul 2005 09:27:49 +0000 (09:27 +0000)
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Fri, 1 Jul 2005 09:27:49 +0000 (09:27 +0000)
SVN-Revision: 1299

openwrt/package/openntpd/ipkg/openntpd.postinst

index 4b2ffe9df611fd18719b0b0c360a22c60ded786a..bb485e788c49acec44ad5ff4a71d7b85e4a813b0 100644 (file)
@@ -32,4 +32,4 @@ 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
+[ $? -eq 0 ] || echo "ntp      123/udp" >>${IPKG_INSTROOT}/etc/services