diff options
Diffstat (limited to 'source/a/bash/doinst.sh')
-rw-r--r-- | source/a/bash/doinst.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/a/bash/doinst.sh b/source/a/bash/doinst.sh index 21760838d..867958fb8 100644 --- a/source/a/bash/doinst.sh +++ b/source/a/bash/doinst.sh @@ -1,7 +1,7 @@ if [ -r bin/bash ]; then mv bin/bash bin/bash.old fi -mv bin/bash2.new bin/bash +mv bin/bash4.new bin/bash if [ -f bin/bash.old ]; then rm -f bin/bash.old fi @@ -9,10 +9,10 @@ if [ ! -r etc/shells ]; then touch etc/shells chmod 644 etc/shells fi -if fgrep "/bin/bash" etc/shells 1> /dev/null 2> /dev/null ; then +if grep -wq /bin/bash etc/shells ; then true else - echo "/bin/bash" >> etc/shells + echo /bin/bash >> etc/shells fi ( cd usr/bin ; rm -rf bash ) ( cd usr/bin ; ln -sf /bin/bash bash ) |