1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-26 14:36:15 +02:00
openwrt-xburst/openwrt/package/atftp/ipkg/files/postinst
florian b1d7fb7b16 Added dependency for libredline, post-installation will add the needed entries in /etc/services if not present, closes #250
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3052 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-01-27 08:19:13 +00:00

9 lines
363 B
Bash
Executable File

#!/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
echo "tftp-mcast 1758/tcp" >>${IPKG_INSTROOT}/etc/services
echo "tftp-mcast 1758/udp" >>${IPKG_INSTROOT}/etc/services
fi