기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.
제가 만든 어플리케이션을 보드가 부팅했을 때 자동으로 실행 되게하고 싶을 때는 어떻게 해야하나요?
제가 예전에 wince로 임베디드 보드를 할 때는 run폴더에 실행 파일 그 당시 ???.exe 파일을 넣어서 보드가
부팅 되자마자 실행했는데요.. 임베디드 리눅스에서는 제가 만든 어플리케이션을 보드가 부팅 되자마자 실행을
하려면 어떻게 해야 하나요? 바로는 아니더라도 리눅스가 부팅이 되고 나서 자동으로 어플리케이션 실행은 어떻게
해야 하나요?
제 임베디드 리눅스에서 /etc/ 밑에 rc.d폴더가 없는데요..ㅠㅠ;
비슷한 것은 있지만요...ㅠㅠ; 그래서 제 생각에는 비슷한 것을
/etc/init.d/rcS 를 봤더니..
아래와 같았는데요..어디를 고쳐야 제 Application을 실행할 수 있나요 ㅠㅠ?
=======================vi logs================================================
root@at91sam9m10g45ek:/etc/init.d# vi 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
# Make sure proc is mounted
#
[ -d "/proc/1" ] || mount /proc
#
# 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 ]
- rcS 1/56 1%
#
if [ -x /sbin/unconfigured.sh ]
then
/sbin/unconfigured.sh
fi
#
# Source defaults.
#
. /etc/default/rcS
#
# Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
trap ":" INT QUIT TSTP
#
# Call all parts in order.
#
exec /etc/init.d/rc S
#
# For compatibility, run the files in /etc/rc.boot too.
#
[ -d /etc/rc.boot ] && run-parts /etc/rc.boot
#
# 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
- rcS 56/56 100%
#
if [ -x /sbin/unconfigured.sh ]
then
/sbin/unconfigured.sh
fi
#
# Source defaults.
#
. /etc/default/rcS
#
# Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
trap ":" INT QUIT TSTP
#
# Call all parts in order.
#
exec /etc/init.d/rc S
#
# For compatibility, run the files in /etc/rc.boot too.
#
[ -d /etc/rc.boot ] && run-parts /etc/rc.boot
#
# 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
/etc/rc.d/init.d/rcS