1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-07 11:41:21 +02:00

Added dependency for libredline, post-installation will add the needed entries in /etc/services if not present, closes #250

SVN-Revision: 3052
This commit is contained in:
Florian Fainelli 2006-01-27 08:19:13 +00:00
parent 066daaac0a
commit 14d75f9727
4 changed files with 11 additions and 0 deletions

@ -4,6 +4,7 @@ config BR2_COMPILE_ATFTP
tristate
default n
depends BR2_PACKAGE_ATFTP || BR2_PACKAGE_ATFTPD
select BR2_PACKAGE_LIBREADLINE
config BR2_PACKAGE_ATFTP
prompt "atftp............................. TFTP client"

@ -2,3 +2,4 @@ Package: atftp
Priority: optional
Section: net
Description: tftp client
Depends: libreadline

@ -2,3 +2,4 @@ Package: atftpd
Priority: optional
Section: net
Description: tftp server
Depends: libreadline

@ -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