jakelly at shtc.net
Sun Sep 11 18:48:44 PDT 2005
On Sun, 11 Sep 2005 21:04:09 -0400, Jeremy Huntwork
<jhuntwork at linuxfromscratch.org> wrote:
>I still have the issue of 'su - lfs' ... to sort out
I could only think of one way. Instead of this:
>cat > ~/.bash_profile << "EOF"
>exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
Do something like this:
>cat > $LFS_USER_HOME_DIR/.bash_profile << "EOF"
>exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' BASH_ENV='.bashrc' /bin/bash ./start_me_up
That will cause you to read the .bashrc startup file, plus kick off
your own script ./start_me_up, when your main script does:
su - $LFS_USER
If there is a better way you can think of, I would be curious to know.
More information about the alfs-discuss