[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    RE: [BusyBox] login help please
From:       "Mark Richards" <mark.richards () massmicro ! com>
Date:       2005-02-21 18:19:49
Message-ID: 200502211819.j1LIJgq03103 () massmicro ! com
[Download RAW message or body]

Maybe you're missing an /etc/shrc file or the associated connection to
/etc/profile script/s?

I speak from how my embedded system is set up - this advice probably doesn't
apply to all distributions.


/etc/shrc:

for FILE in /etc/profile.d/*.sh ; do
	if [ -x $FILE ]; then
		. $FILE
	fi
done

unset FILE

Profile.d/prompt.sh:

LANG=C
export LANG

cdprompt ()
{
	cd $*
	PS1="[$LOGNAME@$HOSTNAME $PWD]$$"
	if [ `id -u` = 0 ]; then
		PS1=$PS1"# "
	else
		PS1=$PS1"$ "
	fi
}

case "$-" in
	*i*)
		# Use it
		alias cd=cdprompt

		# Initialise PS1
		cdprompt `pwd`
Esac


 

-----Original Message-----
From: busybox-bounces@mail.codepoet.org
[mailto:busybox-bounces@mail.codepoet.org] On Behalf Of Mark Beckwith
Sent: Monday, February 21, 2005 12:39
To: busybox@mail.codepoet.org
Subject: [BusyBox] login help please

When I run my system using busybox, I get the string:

"Please press Enter to activate this console."

Then I hit enter and I get a # prompt.  The current directory is /.  

It doesn't seem to be setting my current directory to /root like I want (as
specified in the /etc/passwd file).

When I do do a "su -", the current directory becomes /root, but it doesn't
seem to run my .bashrc, .ashrc, .shrc, or whatever I call it.  

A little guidance please,

Thanks,

Mark

--
Mark Beckwith, Intrig (http://www.intrig.com)



_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic