Remove old imp_helper.sh from rtspserver scripts and add init script for imp_monitor.sh

This commit is contained in:
Alfonso Gamboa 2023-07-11 00:46:19 -07:00
parent 5abcbe5a42
commit ff62b922ed
2 changed files with 25 additions and 3 deletions

View File

@ -101,9 +101,6 @@ case "$1" in
LD_LIBRARY_PATH=/opt/wz_mini/lib LD_PRELOAD=/system/lib/libsetunbuf.so /opt/wz_mini/bin/v4l2rtspserver $AUDIO_CH $AUDIO_FMT -F0 -U "$RTSP_LOGIN":"$RTSP_PASSWORD" -P "$RTSP_PORT" $DEVICE1 $DEVICE2 > $RTSP.log 2>&1 &
fi
sleep 1
echo "Set imp variables via helper"
/opt/wz_mini/usr/bin/imp_helper.sh > /dev/null 2>&1 &
fi
sync;echo 3 > /proc/sys/vm/drop_caches

View File

@ -0,0 +1,25 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides:
# Short-Description: Set system video settings
# Description: Set system video bitrates for video channels
### END INIT INFO
. /opt/wz_mini/wz_mini.conf
case "$1" in
start)
echo "#####$(basename "$0")#####"
echo "Starting imp_monitor.sh in daemon mode..."
/media/mmc/wz_mini/usr/bin/imp_monitor.sh --daemon
;;
*)
echo "Usage: $0 {start}"
exit 1
;;
esac