#!/bin/sh
cp /mnt/localtime /etc
#/mnt/cosmoz.elf led x55
#sleep 1
#/mnt/cosmoz.elf led xaa
#sleep 1
ifconfig eth0 inet 192.168.1.80
route add default gw 192.168.1.1
cp /mnt/udhcpd.conf /etc/
cp /mnt/cosmoz.elf .
cp /mnt/pngwave.elf .
cp -Rf /mnt/www /var/
cp /mnt/resolv.conf /etc/
/mnt/cosmoz.elf led 0
mkdir /var/lib
touch /var/lib/udhcpd.leases
cp /mnt/ntpdate /
export TZ=JST-9
cp /mnt/libpng.so.3.52.0 /usr/lib
ln -s /usr/lib/libpng.so.3.52.0 /usr/lib/libpng.so.3
ln -s /usr/lib/libpng.so.3.52.0 /usr/lib/libpng.so
mkdir /lib/modules/$(uname -r)
insmod /mnt/cszdriver.ko
/ntpdate
busybox udpsvd -vE 0.0.0.0 69 busybox tftpd -c / 2> /dev/null & 
#udhcpd -f &

