/LINUXRC executes the init process initialization file. The main task is to mount the installed root file system (/etc) to Ramfs, and copy all files in the/mnt/etc/directory to/etc, where the system starts many special files, and then LINUXRC to reconstruct the file allocation table Inittab, then perform the system initialization process/ Sbin/init.
LINUXRC #!/bin/"mount/etc as Ramfs"/bin/mount-n-T Ramfs Ramfs/etc< /C5>/BIN/CP-A/mnt/etc/* /etcecho "Re-create the/etc/mtab entries" # Re-create The/etc/mtab Entries/bin/mo Unt-f-T Cramfs-o remount,ro/dev/mtdblock/3//bin/mount-f-t Ramfs ramfs/etcexec/sbin/init
Etc/init.d/rcs completes the mount of each file system, executes the/usr/etc/rc.local, and the RcS can invoke the DHCP program to configure the network. After the RcS is finished, Init will be on a console, follow Inittab's instructions to open a shell, or open Getty + Login, so the user will be prompted to enter the user name prompt.
rc.local/usr/etc/#!/bin//usr/etc/"hello! Embest ""ifconfig eth0 192.168.0.10"192.168 . 0.10 #可自行配置开发板IP
/usr/etc/rc.local This is a special file that is executed by the Init.d/rcs file call, which is related to the Linux system hardware platform, such as installing core modules, configuring the network, running the application, starting the graphical interface, and so on.
RcS/mnt/etc/init.d/#!/bin/sh/bin/mount-/usr/etc/rc.local
/usr/etc/profile the environment variables required to perform the file configuration.
profile/usr/etc/#!/bin/Shpath
An explanation of several important files during the Linux boot process