fix debug/upgrade mode

This commit is contained in:
Alfonso Gamboa 2022-07-31 13:32:36 -07:00
parent 110bac68cb
commit 7d86567615
5 changed files with 38 additions and 4 deletions

View File

@ -3,6 +3,11 @@
source /opt/wz_mini/etc/rc.common
source /opt/wz_mini/wz_mini.conf
if [ -e /tmp/dbgflag ]; then
echo "debug enabled, network.d disabled."
exit 0
fi
wait_for_wlan
for i in /opt/wz_mini/etc/network/S??* ;do

View File

@ -1,5 +1,10 @@
#!/bin/sh
if [ -e /tmp/dbgflag ]; then
echo "debug enabled, rc.d disabled."
exit 0
fi
for i in /opt/wz_mini/etc/rc.d/S??* ;do
# Ignore dangling symlinks (if any).

View File

@ -0,0 +1,23 @@
#!/bin/sh
source /opt/wz_mini/wz_mini.conf
#Set 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

View File

@ -1 +1 @@
Sun Jul 31 12:56:40 AM PDT 2022
Sun Jul 31 01:32:19 PM PDT 2022

View File

@ -54,11 +54,12 @@ ac436b39b69f26fb65e993c2dfefb421 SD_ROOT/wz_mini/etc/wz_mini.conf.dist
bbe9b12c25e0d6c2fdd54a5ecaf35138 SD_ROOT/wz_mini/etc/rc.common
8b5e58acfcbb20034dc4873a08b45fd9 SD_ROOT/wz_mini/etc/profile
2c2df1b9cb603f9c31c46162d6ac307f SD_ROOT/wz_mini/etc/alsa/alsa.conf
e239f638e9a0bcb615b2b9a9205b050f SD_ROOT/wz_mini/etc/rc.d/K01network
48c275a421535d8c21e7960545c684dc SD_ROOT/wz_mini/etc/rc.d/S18fps
dbb0d028de1b8212cc0fd1b64a3e8d22 SD_ROOT/wz_mini/etc/rc.d/K01network
45e5f3f33860e560b3e154dd9510f830 SD_ROOT/wz_mini/etc/rc.d/S12remoteaccessory
3053ed4b5fcd1dc8a38bb90e2ac5fff2 SD_ROOT/wz_mini/etc/rc.d/S17motor
3c688f5e675c18b3431543c640649810 SD_ROOT/wz_mini/etc/rc.d/S10firmware
b667544fa7c8913ee97973d1829bfcd6 SD_ROOT/wz_mini/etc/rc.d/K03rcd
b8705ccc4f08347d3676bb57f737c2a1 SD_ROOT/wz_mini/etc/rc.d/K03rcd
6a252a0be94933afd55f72b613fab583 SD_ROOT/wz_mini/etc/rc.d/K02webcam
546158e1666d8587c151480e64ac88a8 SD_ROOT/wz_mini/etc/rc.d/S07bonding
553c41631a075764bc2e1b4e496cfc66 SD_ROOT/wz_mini/etc/rc.d/S06networkalt
@ -149,7 +150,7 @@ b339aee882a5d1c943ad08e4282ec3fd SD_ROOT/wz_mini/usr/bin/iCamera-dbg
20b061689308b2cee7edf3b9b906bca7 SD_ROOT/wz_mini/usr/bin/ucamera
3777d9e80c8b517c01a124e6360b6525 SD_ROOT/wz_mini/usr/bin/imp_helper.sh
580b1b6e91e72b4a4fef7b21d8954403 SD_ROOT/wz_mini/usr/bin/getSensorType
1691c47a9371797367d7bcf435ae6957 SD_ROOT/wz_mini/usr/bin/app.ver
e147e8fe9e0fa239afebf5ae7d1174a5 SD_ROOT/wz_mini/usr/bin/app.ver
4c780f0455481d106d47d89f0ae04ed5 SD_ROOT/wz_mini/lib/uClibc.tar
9afeb088e4cbabbe0b04033b560204d0 SD_ROOT/wz_mini/lib/libimp.so
4100755cb6cc6e3b76da20c7e3690e16 SD_ROOT/wz_mini/lib/libalog.so