mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-29 15:13:43 +02:00
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
This commit is contained in:
parent
0bbece3b1a
commit
b1d7fb7b16
@ -4,6 +4,7 @@ config BR2_COMPILE_ATFTP
|
|||||||
tristate
|
tristate
|
||||||
default n
|
default n
|
||||||
depends BR2_PACKAGE_ATFTP || BR2_PACKAGE_ATFTPD
|
depends BR2_PACKAGE_ATFTP || BR2_PACKAGE_ATFTPD
|
||||||
|
select BR2_PACKAGE_LIBREADLINE
|
||||||
|
|
||||||
config BR2_PACKAGE_ATFTP
|
config BR2_PACKAGE_ATFTP
|
||||||
prompt "atftp............................. TFTP client"
|
prompt "atftp............................. TFTP client"
|
||||||
|
@ -2,3 +2,4 @@ Package: atftp
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Section: net
|
Section: net
|
||||||
Description: tftp client
|
Description: tftp client
|
||||||
|
Depends: libreadline
|
||||||
|
@ -2,3 +2,4 @@ Package: atftpd
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Section: net
|
Section: net
|
||||||
Description: tftp server
|
Description: tftp server
|
||||||
|
Depends: libreadline
|
||||||
|
8
openwrt/package/atftp/ipkg/files/postinst
Executable file
8
openwrt/package/atftp/ipkg/files/postinst
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user