fix some more postinst brokenness

git-svn-id: svn://svn.openwrt.org/openwrt/packages@4645 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2006-08-23 22:05:22 +00:00
parent b398acb8c7
commit 6e1983d551
2 changed files with 14 additions and 14 deletions

View File

@ -42,12 +42,12 @@ endef
define Package/atftpd/postinst
#!/bin/sh
grep -q '^tftp[[:space:]]*69/tcp' ${IPKG_INSTROOT}/etc/services 2>/dev/null
if [ $? -ne 0 ]; then
echo "tftp 69/tcp" >>${IPKG_INSTROOT}/etc/services
echo "tftp 69/udp" >>${IPKG_INSTROOT}/etc/services
echo "tftp-mcast 1758/tcp" >>${IPKG_INSTROOT}/etc/services
echo "tftp-mcast 1758/udp" >>${IPKG_INSTROOT}/etc/services
grep -q '^tftp[[:space:]]*69/tcp' $${IPKG_INSTROOT}/etc/services 2>/dev/null
if [ $$? -ne 0 ]; then
echo "tftp 69/tcp" >>$${IPKG_INSTROOT}/etc/services
echo "tftp 69/udp" >>$${IPKG_INSTROOT}/etc/services
echo "tftp-mcast 1758/tcp" >>$${IPKG_INSTROOT}/etc/services
echo "tftp-mcast 1758/udp" >>$${IPKG_INSTROOT}/etc/services
fi
endef