[BL] Replacing sh with bash

baslinux at lists.ibiblio.org baslinux at lists.ibiblio.org
Thu Feb 5 23:39:13 EST 2009


Message from Steven
===================
Iam wrote:
> 
> I have BL 3.5 installed on the hard drive and have 
> been trying to work out how to replace its shell 
> with bash. Ive pkg bash and I think its all in the 
> right place. There is a real /bin/bash where there 
> was once just a symlink. 

Good, the rest is easy.

> Im thinking that I have to alter one or more of 
> the following /etc/initab, /etc/rc, /etc/profile, 
>  /etc/passwrd or perhaps replace the busybox init 
> with another one. 

One way is to edit /etc/inittab, but there is a
better method below.

> So what is the best way to replace sh with bash?

If you look at sh, you will see that it is a 
symlink to busybox.  Simply delete sh and create 
a new symlink to bash:  
-------------------------------
cd /bin ; rm sh ; ln -s bash sh
-------------------------------

Cheers,
Steven



More information about the BasLinux mailing list