Successfully exit from the postinst script if the /etc/services entry already exists (#3191)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10568 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
81e0353a4b
commit
3ecd15e35e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user