#!/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 25M size
/bin/mount -t tmpfs -o size=30m tmpfs /var
/bin/mount -t tmpfs -o size=15m modules /lib/modules/2.6.23.17_stm23_A26-pdk7105
#create directory
mkdir -p /var/ftp/pub  /var/log  /var/www /var/run
chmod 777 /var/ftp/pub

touch /var/password

mknod /dev/lcdbacklight c 300 0

/bin/udevd --daemon
/bin/udevstart

/sbin/sysctl -p

/sbin/ifconfig   lo 127.0.0.1

/sbin/ifconfig eth0 10.10.80.220
#/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
/bin/boa


tar -xvf /lib/modules/modules.tar -C /lib/modules/2.6.23.17_stm23_A26-pdk7105/
mv /lib/modules/2.6.23.17_stm23_A26-pdk7105/modules/* /lib/modules/2.6.23.17_stm23_A26-pdk7105
source  /lib/modules/2.6.23.17_stm23_A26-pdk7105/load_modules.sh
rm /lib/modules/2.6.23.17_stm23_A26-pdk7105/* -rf
/root/test_access &
/root/3100P.bin

#/usr/local/apache/bin/apachectl start

