wok-tiny annotate telnet-config/receipt @ rev 142

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 27 17:43:23 2019 +0100 (7 months ago)
parents 0d8ef9102fc0
children e37956962a84
rev   line source
pascal@83 1 # SliTaz package receipt.
pascal@83 2
pascal@83 3 PACKAGE="telnet-config"
pascal@83 4 VERSION="1.0"
pascal@119 5 CATEGORY="meta"
pascal@119 6 GROUP="network"
pascal@83 7 SHORT_DESC="Enable Telnet server"
pascal@83 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@90 9 LICENSE="BSD"
pascal@83 10 WEB_SITE="http://tiny.slitaz.org/"
pascal@83 11 DEPENDS="base-tiny"
pascal@83 12
pascal@83 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@83 14 genpkg_rules()
pascal@83 15 {
pascal@83 16 mkdir -p $fs/etc
pascal@83 17 }
pascal@83 18
pascal@83 19 post_install()
pascal@83 20 {
pascal@86 21 grep -q inetd $1/etc/rcS.conf ||
pascal@86 22 sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf
pascal@119 23 sed -i '/#telnet/d' $1/etc/inetd.conf
pascal@86 24 grep -q telnetd $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
pascal@97 25 telnet stream tcp nowait root telnetd telnetd -i
pascal@86 26 EOT
pascal@83 27 }