summaryrefslogtreecommitdiff
path: root/package/atftp/ipkg/files/postinst
blob: 35a2c3b3620c80c09c0ed06b99b13de76be28c68 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/env mksh
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
	echo "tftp-mcast    1758/tcp" >>${IPKG_INSTROOT}/etc/services
	echo "tftp-mcast    1758/udp" >>${IPKG_INSTROOT}/etc/services
fi