slackbuilds_ponce/system/pdksh/doinst.sh
Azure Zanculmarktum 5494138f2b system/pdksh: Added (the Public Domain Korn Shell)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2017-07-12 22:48:52 +07:00

10 lines
209 B
Bash

# Add entries to /etc/shells if we need them
if [ ! -r etc/shells ] ; then
touch etc/shells
chmod 644 etc/shells
fi
if ! grep -Fqs "/bin/pdksh" etc/shells ; then
echo "/bin/pdksh" >> etc/shells
fi