HI:
   I am building my root filesystem, my develop environment is: montavista 
2.6.10 kernel, busybox-1.5.1, NFS.
   If I run my project by manual, when it is running, I can use "ctrl+c" to 
stop it. But if I add commands in "/etc/rc.d/rc.local" to auto running 
project, now when I open the power of my board, my project can auto 
running, but can not stop it by "ctrl+c".
   The below are my script files.

inittab:
----------------------------------------------------------------------
::sysinit:/etc/init.d/rcS 
::respawn:-/bin/sh 
tty2::askfirst:-/bin/sh 
::ctrlaltdel:/bin/umount -a -r 
----------------------------------------------------------------------

rcS:
----------------------------------------------------------------------
#! /bin/sh 
# 
# rcS Call all S??* scripts in /etc/rcS.d in 
# numerical/alphabetical order. 
# 
# Version: @(#)/etc/init.d/rcS 2.76 19-Apr-1999 [EMAIL PROTECTED] 
# 

PATH=/sbin:/bin:/usr/sbin:/usr/bin 
runlevel=S 
prevlevel=N 
umask 022 
export PATH runlevel prevlevel 

# 
# See if system needs to be setup. This is ONLY meant to 
# be used for the initial setup after a fresh installation! 
# 
if [ -x /sbin/unconfigured.sh ] 
then 
/sbin/unconfigured.sh 
fi 

# 
# Source defaults. 
# 
. /etc/default/rcS 
export VERBOSE 

# 
# Trap CTRL-C &c only in this shell so we can interrupt subprocesses. 
# 
trap ":" INT QUIT TSTP 

# 
# Call all parts in order. 
# 
for i in /etc/rc.d/rcS.d/S??* 
do 
# Ignore dangling symlinks for now. 
[ ! -f "$i" ] && continue 

case "$i" in 
*.sh) 
# Source shell script for speed. 
( 
trap - INT QUIT TSTP 
set start 
. $i 
) 
;; 
*) 
# No sh extension, so fork subprocess. 
$i start 
;; 
esac 
done 

# Run /etc/rc.d/rc.local if it exists 
[ -x /etc/rc.d/rc.local ] && /etc/rc.d/rc.local 

# 
# Finish setup if needed. The comment above about 
# /sbin/unconfigured.sh applies here as well! 
# 
if [ -x /sbin/setup.sh ] 
then 
/sbin/setup.sh 
fi 
-----------------------------------------------------------------------

rc.local:
-----------------------------------------------------------------------
/home/yinhj/rootfs1/loadmodules.sh        #to load needed modules
/home/yinhj/rootfs1/encodedecode -p       #run my application project
-----------------------------------------------------------------------
     Could anybody give me some suggestion? thanks
REGARDS
Steven

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  

_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to