9ce6bbd92a
* new init system * update new init scripts * update checksum * fix broken audio promps with new init scripts * fix debug/upgrade mode * fix bonding and eth0 hw addr * add checksum * fix bonding setup * add rtsp auth disable * adjust network init scripts path * recreated repo and re added cron scripts (#211) * recreated repo and re added cron scripts * rename cron script and move it to the right folder. * Delete .vs directory remove .vs directory * add deubg message to bonding rc.d script * add crontab variable to wz_mini.conf * fix mp4write * add syslog debug feature * fix syslog init blocking * fix syslog save function * increase imp_helper rerun delay * update init scripts * fix bonding and usb-direct * update checksum * add netmon for bonding * fix supervisor function * update model detection * fix debugging injection on T20 devices Co-authored-by: sideup66 <47700565+sideup66@users.noreply.github.com>
40 lines
859 B
Bash
40 lines
859 B
Bash
#!/bin/sh
|
|
### BEGIN INIT INFO
|
|
# Provides:
|
|
# Short-Description: Set system FPS
|
|
# Description: Set system FPS if greater than factory defaults
|
|
### END INIT INFO
|
|
|
|
. /opt/wz_mini/wz_mini.conf
|
|
|
|
case "$1" in
|
|
start)
|
|
|
|
echo "#####$(basename "$0")#####"
|
|
|
|
echo "Seting system FPS if greater than default"
|
|
|
|
if [ $RTSP_HI_RES_FPS -gt 20 ]; then
|
|
if cat /configs/.user_config | grep fps; then
|
|
sed -i "s/fps.*/fps\=$RTSP_HI_RES_FPS/" /configs/.user_config
|
|
else
|
|
sed -i "/\[SETTING\].*/a fps=$RTSP_HI_RES_FPS" /configs/.user_config
|
|
fi
|
|
|
|
elif [ $RTSP_LOW_RES_FPS -gt 20 ]; then
|
|
if cat /configs/.user_config | grep fps; then
|
|
sed -i "s/fps.*/fps\=$RTSP_LOW_RES_FPS/" /configs/.user_config
|
|
else
|
|
sed -i "/\[SETTING\].*/a fps=$RTSP_LOW_RES_FPS" /configs/.user_config
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|