RT-IPC_camera/bin/sensorenv.sh

29 lines
648 B
Bash
Executable File

#!/bin/sh
#### /etc/sysenv.conf
##RT_PATH=/rt
##SENSOR_CONF=/etc/sensor.conf
##SENSOR_SO=/rt/lib/libSensor.so
. /etc/sysenv.conf
. ${SENSOR_CONF}
SensorType=${sensortype}
sensorso=${SENSOR_SO}
rm ${sensorso} 2>/dev/null
echo "set sensorenv ,sensor as $SensorType"
rm ${sensorso} -rf
case $SensorType in
gc2053)
ln -s /usr/lib/libsns_gc2053.so ${sensorso}
;;
*)
ln -s /usr/lib/libsns_gc2053.so ${sensorso}
echo "xxxx Invalid sensor type $SNS_A xxxx"
;;
esac
sync
exit