1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-21 00:57:37 +03:00
openwrt-xburst/openwrt/package/atftp/ipkg/files/postinst

9 lines
363 B
Plaintext
Raw Normal View History

#!/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
fi