From b1d7fb7b1690cde31f4cae029aabf65ea6224ca5 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 27 Jan 2006 08:19:13 +0000 Subject: 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 --- openwrt/package/atftp/ipkg/files/postinst | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 openwrt/package/atftp/ipkg/files/postinst (limited to 'openwrt/package/atftp/ipkg/files') diff --git a/openwrt/package/atftp/ipkg/files/postinst b/openwrt/package/atftp/ipkg/files/postinst new file mode 100755 index 000000000..a29644996 --- /dev/null +++ b/openwrt/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 -- cgit v1.2.3