system/etsh: Add /bin/etsh to /etc/shells.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-05-07 14:25:16 -04:00 committed by Willy Sudiarto Raharjo
parent 9acd8ddac9
commit 3822b9d63d
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 6 additions and 1 deletions

1
system/etsh/doinst.sh Normal file
View file

@ -0,0 +1 @@
grep -q '^/bin/etsh$' etc/shells 2>/dev/null || echo "/bin/etsh" >> etc/shells

View file

@ -18,6 +18,9 @@
# The name means "Extended Thompson Shell", it's nothing to do with # The name means "Extended Thompson Shell", it's nothing to do with
# phoning home... # phoning home...
# 20220507 bkw, BUILD=2:
# - add doinst.sh: add /bin/etsh to /etc/shells, but not /bin/tsh
# per upstream's recommendation.
# 20191201 bkw: updated for v5.4.0. # 20191201 bkw: updated for v5.4.0.
# 20180902 bkw: updated for v5.3.1. # 20180902 bkw: updated for v5.3.1.
@ -27,7 +30,7 @@ PRGNAM=etsh
VERSION=${VERSION:-5.4.0} # main etsh version VERSION=${VERSION:-5.4.0} # main etsh version
V6S_VER=${V6S_VER:-20180109} # v6scripts version V6S_VER=${V6S_VER:-20180109} # v6scripts version
LT_VER=${LT_VER:-20180115} # looptest version LT_VER=${LT_VER:-20180115} # looptest version
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -102,6 +105,7 @@ cat $CWD/$PRGNAM.SlackBuild > $DOCDIR/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE