#!/bin/sh export LD_LIBRARY_PATH=/mvs/lib sleep 1 cp /mnt/mtd/prerun /tmp/prerun -af chmod +x /tmp/prerun /tmp/prerun /usr/sbin/usb_wifi_install.sh install /sbin/insmod /usr/modules/ak_isp.ko sensor_interface=`grep "sensor_interface=" /mnt/mtd/mvconf/isp_settings.ini | awk '{print $1}'` if [ ! -z $sensor_interface ] then interface=${sensor_interface#*=} if [ "$interface" = "dvp" ] then echo "install dvp sensro modules" else echo "install mipi sensro modules" /sbin/insmod /mvs/modules/sensor_gc4653.ko check_id=1 /sbin/insmod /mvs/modules/sensor_sc2335.ko check_id=1 /sbin/insmod /mvs/modules/sensor_sc2332.ko check_id=1 /sbin/insmod /mvs/modules/sensor_sc3335.ko check_id=1 /sbin/insmod /mvs/modules/sensor_sc5238.ko check_id=1 /sbin/insmod /mvs/modules/sensor_mis2006.ko check_id=1 /sbin/insmod /mvs/modules/sensor_mis2008.ko check_id=1 /sbin/insmod /mvs/modules/sensor_sc2336.ko check_id=1 /sbin/insmod /mvs/modules/sensor_sc1345.ko check_id=1 /sbin/insmod /mvs/modules/sensor_gc1054.ko check_id=1 fi fi ipc_type=`grep "ipc_type=" /mnt/mtd/mvconf/record.ini` if [ ! -z $ipc_type ] then ipc_switch=${ipc_type#*=} if [ "$ipc_switch" = "0" ] then echo "This IPC is V331" else echo "This IPC is V330" fi fi /mvs/apps/recorder -rsid /mnt/mtd/nvipcstart.sh if [ -f "/ext/apps/extstart.sh" ] then /ext/apps/extstart.sh fi