let ipkg fail when a package file to be installed is not found
[openwrt/staging/wigyori.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