postinst 373 B

12345678
  1. #!/usr/bin/env mksh
  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