RCS is the system initialization script that completes some of the initial configuration work to open the application.
#!/bin/sh
mount-a; Mount file, the file to mount has fstab specified.
. /etc/profile; Configuring Environment variables
echo "Configuring Network...\n"; Configure the network
Ifconfig eth0 Down
Ifconfig eth0 192.168.1.254
Ifconfig Lo 127.0.0.1 up
Route add-net 127.0.0.0 netmask 255.0.0.0 Lo
Route add default GW 192.168.1.1
/USR/SBIN/TELNETD & Turn on Telnet
echo "------------RcS over.--------------------\ n"
-----------------------------------------------------------------------------
The simplest RCS should also mount FS, opening the network port.
Telnet,ftp can be turned on as needed later.
-----------------------------------------------------------------------------
Fstab configuration:
#<file name> <mount point> <type> <options> <dump> <pass>
PROC/PROC proc Defaults 0 0
None/tmp Ramfs Defaults 0 0
Sysfs/sys Sysfs Defaults 0 0
Devpts/dev/pts devpts Defaults 0 0
-----------------------------------------------------------------------------
Environment variable profile can be configured in RCS
#/etc/profile:system-wide. profile file for the Bourne shells
Echo
Echo-n "Processing/etc/profile ... "
# No-op
echo "Done"
Echo
BusyBox rcs&fstab Configuration