summaryrefslogtreecommitdiff
path: root/package/atftp/files/atftp.postinst
blob: dddd0b0d16c631a5d27b26bc969e265f1205e455 (plain)
1
2
3
4
5
6
#!/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
fi