rcS文件内容如下:
#! /bin/sh
echo "Welcome to Linux 2.6 in RealARM ---- Zhulin"
PATH=/sbin:/bin:/usr/sbin:/usr/bin
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel
#
# Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
trap ":" INT QUIT TSTP
/bin/mount -t proc none /proc
/etc/ppp call cdma1 //cdma modem拨号
iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -j MASQUERADE //NAT设置
ip route add 192.168.3.0 dev eth0 //路由设置