atftp.postinst 249 B

123456
  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. fi