硬件板卡
庐山派
在ls /etc/init.d/ 目录下面找个文件追加上你的程序就可以了;比如 /etc/init.d/S99showversion
[root@canaan /etc/init.d ]#cat /etc/init.d/S99showversion
#!/bin/sh
cat /etc/version/release_version
[root@canaan /etc/init.d ]#
[root@canaan /etc/init.d ]#pwd
/etc/init.d
[root@canaan /etc/init.d ]#ls -lh
total 31K
-rwxr-xr-x 1 root root 473 Apr 21 13:08 S00resizemmc
-rwxr-xr-x 1 root root 674 Apr 21 13:08 S01mdev
-rwxr-xr-x 1 root root 1.2K May 6 04:23 S01seedrng
-rwxr-xr-x 1 root root 1.2K May 6 04:16 S01syslogd
-rwxr-xr-x 1 root root 1004 May 6 04:16 S02klogd
-rwxr-xr-x 1 root root 2.7K May 6 04:15 S02sysctl
-rwxr-xr-x 1 root root 1.6K May 6 04:11 S30dbus
-rwxr-xr-x 1 root root 357 Apr 21 13:08 S31canaan_isp
-rwxr-xr-x 1 root root 1.3K May 6 04:12 S40bluetoothd
-rwxr-xr-x 1 root root 155 May 20 03:23 S40k230_canmv_01studio_defconfig
-rwxr-xr-x 1 root root 632 Apr 21 13:08 S40network
-rwxr-xr-x 1 root root 2.7K Apr 21 13:08 S41adb_mtp
-rwxr-xr-x 1 root root 1.2K May 6 04:15 S48sntp
-rwxr-xr-x 1 root root 918 May 6 04:15 S49ntp
-rwxr-xr-x 1 root root 1.2K May 6 04:16 S50crond
-rwxr-xr-x 1 root root 1.2K May 6 04:22 S50sshd
-rwxr-xr-x 1 root root 614 May 6 04:16 S50telnet
-rwxr-xr-x 1 root root 43 Apr 21 13:08 S99showversion
-rwxr-xr-x 1 root root 423 May 6 04:21 rcK
-rwxr-xr-x 1 root root 408 May 6 04:21 rcS
[root@canaan /etc/init.d ]#
其实是上电启动庐山派小智那个, 把小智文件夹解压到这里吗, 因为他可执行文件要依赖一些东西, 这种要怎么搞