[BusyBox] strace for ash
Jules Colding
JuBColding at yorkref.com
Sat Apr 26 21:01:52 UTC 2003
On Sat, 2003-04-26 at 20:19, Erik Andersen wrote:
> On Sat Apr 26, 2003 at 12:26:07PM +0200, Jules Colding wrote:
> > Hi,
> >
> > I have this problem that ash exits right after the:
> >
> > "BusyBox v0.60.5 (2003.04.25-20:31+0000) Built-in shell (ash)
> > Enter 'help' for a list of built-in commands."
> >
> > greeting. I now have a trace of what happens, but I am rather lost as to
> > what it means. Could someone give me a clue, please?
>
> What does your /etc/profile file contain? It looks like
> it is causing ash to exit,
>
I can not see anything special in my /etc/profile which, btw, used to
work. Is there some dreadful error in it?
--
jules
############################### CUT #############################
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
PATH=/usr/local/bin:/usr/bin:/bin
pathmunge () {
if [ -z "$1" ]; then
exit 0
fi
if ! echo $PATH | /bin/grep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# Path manipulation
if [ $(id -u) = 0 ]; then
pathmunge
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
pathmunge /usr/X11R6/bin after
unset pathmunge
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
USER="$(id -un)"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
TZ=UTC
HOSTNAME=$(hostname)
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL TZ HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
More information about the busybox
mailing list