Added dependency for libredline, post-installation will add the needed entries in...
[openwrt.git] / openwrt / package / atftp / ipkg / files / postinst
1 #!/bin/sh
2 grep -q '^tftp[[:space:]]*69/tcp' ${IPKG_INSTROOT}/etc/services 2>/dev/null
3 if [ $? -ne 0 ]; then
4         echo "tftp            69/tcp" >>${IPKG_INSTROOT}/etc/services
5         echo "tftp            69/udp" >>${IPKG_INSTROOT}/etc/services
6         echo "tftp-mcast    1758/tcp" >>${IPKG_INSTROOT}/etc/services
7         echo "tftp-mcast    1758/udp" >>${IPKG_INSTROOT}/etc/services
8 fi