BusyBox rcs&fstab Configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.