#!/bin/sh
/bin/mount -a

/bin/mount -t tmpfs mdev /dev
/sbin/mdev -s

#/bin/mount -t tmpfs -o size=15m tmpfs /var/ftp/pub
#mount the /var to 30M size
/bin/mount -t tmpfs -o size=30m tmpfs /var
#create directory
mkdir -p /var/ftp/pub  /var/log  /var/www /var/run
chmod 777 /var/ftp/pub

touch /var/password

mknod /dev/piodriver c 333 0

/bin/udevd --daemon
/bin/udevstart

/sbin/sysctl -p

/sbin/ifconfig   lo 127.0.0.1

/sbin/ifconfig eth0 10.10.80.228
#/sbin/ifconfig eth0 up

/usr/sbin/vsftpd &
/usr/sbin/telnetd
/bin/mkdir /dev/pts
/bin/mount -t devpts devpts /dev/pts

/usr/local/apache/bin/httpd

source  /lib/modules/2.6.23.17_stm23_A26-pdk7105/load_modules.sh
mkdir /usr/local/preset
chmod 777 /usr/local/preset
/root/1400PM.bin
#/usr/local/apache/bin/apachectl start

