首先编辑
etc\init.d\rcs
#!/bin/sh
ifconfig eth0 192.168.1.17
mount -a
cd /bin 这里放着 test 测试程序
./test & 后面的 & 表示这个程序在后台运行,不会占用控制台,如果不加控制台就不会相应你输入的命令了
test内容
#include <stdio.h>
int main(void)
{
printf("first one!\r\n");
while(1);
}
本文介绍了一个简单的嵌入式系统的启动脚本实现过程,包括网络配置、文件系统挂载及后台运行测试程序等步骤,并附带了具体的Shell脚本和测试程序代码。
875

被折叠的 条评论
为什么被折叠?



