slackware-current/source/a/bash/doinst.sh

19 lines
362 B
Bash
Raw Normal View History

if [ -r bin/bash ]; then
mv bin/bash bin/bash.old
fi
mv bin/bash4.new bin/bash
if [ -f bin/bash.old ]; then
rm -f bin/bash.old
fi
if [ ! -r etc/shells ]; then
touch etc/shells
chmod 644 etc/shells
fi
if grep -wq /bin/bash etc/shells ; then
true
else
echo /bin/bash >> etc/shells
fi
( cd usr/bin ; rm -rf bash )
( cd usr/bin ; ln -sf /bin/bash bash )