summaryrefslogtreecommitdiff
path: root/source/a/bash/doinst.sh
blob: 2cd4256492da99e29c047d077cde477ce8ff08e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if [ -r bin/bash ]; then
  mv bin/bash bin/bash.old
fi
mv bin/bash5.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 )