diff options
Diffstat (limited to 'package/atftp/ipkg')
-rw-r--r-- | package/atftp/ipkg/atftp.control | 1 | ||||
-rw-r--r-- | package/atftp/ipkg/atftpd.control | 1 | ||||
-rwxr-xr-x | package/atftp/ipkg/files/postinst | 8 |
3 files changed, 10 insertions, 0 deletions
diff --git a/package/atftp/ipkg/atftp.control b/package/atftp/ipkg/atftp.control index d2083fc619..ca4d86a308 100644 --- a/package/atftp/ipkg/atftp.control +++ b/package/atftp/ipkg/atftp.control @@ -2,3 +2,4 @@ Package: atftp Priority: optional Section: net Description: tftp client +Depends: libreadline diff --git a/package/atftp/ipkg/atftpd.control b/package/atftp/ipkg/atftpd.control index efb40299c3..acdd2f1ced 100644 --- a/package/atftp/ipkg/atftpd.control +++ b/package/atftp/ipkg/atftpd.control @@ -2,3 +2,4 @@ Package: atftpd Priority: optional Section: net Description: tftp server +Depends: libreadline diff --git a/package/atftp/ipkg/files/postinst b/package/atftp/ipkg/files/postinst new file mode 100755 index 0000000000..a29644996e --- /dev/null +++ b/package/atftp/ipkg/files/postinst @@ -0,0 +1,8 @@ +#!/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 |