diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-06-04 19:49:34 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-06-04 19:49:34 +0200 |
commit | 8a2754e0fbdea7497281327f2896be2a1253a107 (patch) | |
tree | bc7c400745fde54e6fb7a010fcb026258564d3bc /package/atftp | |
parent | 9bd4456c5a83c3474fdf9fe5cf14004a0874e2c8 (diff) | |
parent | 2d3aaf1664850031f5497e121dc82ab65f63641a (diff) |
Merge branch 'master' of ssh://openadk.org/git/openadk
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 |