diff options
Diffstat (limited to 'package/atftp')
-rw-r--r-- | package/atftp/Makefile | 2 | ||||
-rw-r--r-- | package/atftp/files/atftp.postinst | 6 | ||||
-rwxr-xr-x | package/atftp/ipkg/files/postinst | 8 |
3 files changed, 6 insertions, 10 deletions
diff --git a/package/atftp/Makefile b/package/atftp/Makefile index ec903cdf7..086e741ce 100644 --- a/package/atftp/Makefile +++ b/package/atftp/Makefile @@ -1,5 +1,3 @@ -# $Id$ -#- # This file is part of the OpenADK project. OpenADK is copyrighted # material, please see the LICENCE file in the top-level directory. diff --git a/package/atftp/files/atftp.postinst b/package/atftp/files/atftp.postinst new file mode 100644 index 000000000..dddd0b0d1 --- /dev/null +++ b/package/atftp/files/atftp.postinst @@ -0,0 +1,6 @@ +#!/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 +fi diff --git a/package/atftp/ipkg/files/postinst b/package/atftp/ipkg/files/postinst deleted file mode 100755 index 35a2c3b36..000000000 --- a/package/atftp/ipkg/files/postinst +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env mksh -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 |