rm /mnt/sample_avenc
rm /mnt/dvr.tar.gz
cp /share/dvr.tar.gz /mnt

rm /home/ko/extdrv/hi_rtc.ko
cp /share/hi_rtc.ko /home/ko/extdrv/

rm /home/ko/extdrv/gpioi2c.ko
cp /share/gpioi2c.ko /home/ko/extdrv/

rm /home/ko/extdrv/nvp1918c_ex.ko
cp /share/nvp6114_ex.ko /home/ko/extdrv/

rm /home/ko/extdrv/8192cu.ko
cp /share/8192cu.ko /home/ko/extdrv/

rm /home/ko/extdrv/option.ko
cp /share/option.ko /home/ko/extdrv/

rm /home/ko/extdrv/usb_wwan.ko
cp /share/usb_wwan.ko /home/ko/extdrv/

rm /home/ko/load3520D
cp /share/load3520D /home/ko/

rm -rf /mnt/resource.tar.gz
cp -rf /share/resource.tar.gz /mnt/

rm /etc/inittab
rm /etc/passwd
rm /etc/passwd-

cp /share/inittab /etc/
cp /share/passwd /etc/
cp /share/passwd- /etc/

#i2c app here.
rm -rf /usr/sbin/i2c_read
cp -rf /share/i2c_read /usr/sbin/

rm -rf /usr/sbin/i2c_write
cp -rf /share/i2c_write /usr/sbin/

#reset to default config.
i2c_read 0xa0 0x0 x04
i2c_write 0xa0 0x0 0x10

i2c_read 0xa0 0x0 0x04

sync

