Shell problems with 1.2.1

Yan Seiner yan at seiner.com
Thu Sep 28 18:03:13 UTC 2006


I've been driving myself crazy trying to figure out my shell problems...

busybox 1.2.1, fresh download.

===== ash =====

Built with ash as the default shell doesn't seem to recognize PATH.

~ # ps
-sh: ps: not found
~ # /bin/ps
  PID  Uid     VmSize Stat Command
    1 root        724 S   init
    2 root            SW  [keventd]
    3 root            SWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    7 root            SW  [mtdblockd]
    8 root            SW  [rpciod]
   39 root        420 S   /bin/keypadd
   41 root        552 S   /bin/dropbear
   43 root        856 S   /bin/dropbear
   44 root        792 S   -sh
   49 root        736 R   /bin/ps
~ # set
HISTFILE='/root/.ash_history'
HOME='/root'
IFS='
'
LOGNAME='root'
PATH='/usr/local/bin:/usr/bin:/sbin:/bin'
PPID='43'
PS1='\w \$ '

The only thing I can think of is my kernel command line:

console=ttyAM1,115200 ip=192.168.1.252 
nfsroot=192.168.1.3:/home/local/panel/arm/ts7200 CONSOLE=/dev/ttyAM1

I am using the CONSOLE parameter.  Unfortunately the system won't boot 
without it, so I cannot test if it really is the cause of the problem.

===== hush ====

Build with hush as the default shell.  It recognizes paths, but it 
leaves phantom shells laying around. The symptoms are as follows:

I run a command, it returns immediately without apparently doing 
anything.  But ps shows a sh process with a T status.  These seem to 
never go away and just multiply.  If I get it just right, it takes 2 
command invocations to actually execute something....

~ # ps
  PID  Uid     VmSize Stat Command
    1 root        320 S   init
    2 root            SW  [keventd]
    3 root            SWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    7 root            SW  [mtdblockd]
    8 root            SW  [rpciod]
   23 root        340 S   /bin/sh /etc/init.d/rcS
   25 root        372 S   /bin/sh /etc/init.d/rcS
   50 root            SW  [khubd]
   67 root        328 S   /usr/sbin/httpd -h /www -c /etc/httpd.conf
   69 root        300 S   /bin/sh /bin/konq
   71 root       9560 S   /bin/konqueror -qws -geometry 320x240 
http://127.0.0.1:/cgi-bin/WaterSchedule.php
   73 root        252 S   /bin/keypadd
   75 root        292 S   /bin/dropbear
   77 root       2140 S   /bin/konqueror -qws -geometry 320x240 
http://127.0.0.1:/cgi-bin/WaterSchedule.php
   87 root        804 S   /bin/dropbear
   88 root        768 S   -sh
   91 root        808 R   -sh
~ # ps
~ # ps
  PID  Uid     VmSize Stat Command
    1 root        320 S   init
    2 root            SW  [keventd]
    3 root            SWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    7 root            SW  [mtdblockd]
    8 root            SW  [rpciod]
   23 root        340 S   /bin/sh /etc/init.d/rcS
   25 root        372 S   /bin/sh /etc/init.d/rcS
   50 root            SW  [khubd]
   67 root        328 S   /usr/sbin/httpd -h /www -c /etc/httpd.conf
   69 root        300 S   /bin/sh /bin/konq
   71 root       9432 S   /bin/konqueror -qws -geometry 320x240 
http://127.0.0.1:/cgi-bin/WaterSchedule.php
   73 root        252 S   /bin/keypadd
   75 root        292 S   /bin/dropbear
   77 root       2140 S   /bin/konqueror -qws -geometry 320x240 
http://127.0.0.1:/cgi-bin/WaterSchedule.php
   87 root        804 R   /bin/dropbear
   88 root        768 S   -sh
   92 root        768 T   -sh
   93 root        808 R   -sh




More information about the busybox mailing list