mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-01-10 22:56:59 +00:00
Remove old imp_helper.sh from rtspserver scripts and add init script for imp_monitor.sh
This commit is contained in:
parent
5abcbe5a42
commit
ff62b922ed
@ -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 &
|
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
|
fi
|
||||||
|
|
||||||
sleep 1
|
|
||||||
echo "Set imp variables via helper"
|
|
||||||
/opt/wz_mini/usr/bin/imp_helper.sh > /dev/null 2>&1 &
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sync;echo 3 > /proc/sys/vm/drop_caches
|
sync;echo 3 > /proc/sys/vm/drop_caches
|
||||||
|
25
SD_ROOT/wz_mini/etc/rc.d/S19video
Normal file
25
SD_ROOT/wz_mini/etc/rc.d/S19video
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user