mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-08-09 20:14:04 +00:00
fix debug/upgrade mode
This commit is contained in:
@@ -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
|
||||
|
@@ -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).
|
||||
|
23
SD_ROOT/wz_mini/etc/rc.d/S18fps
Normal file
23
SD_ROOT/wz_mini/etc/rc.d/S18fps
Normal 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
|
@@ -1 +1 @@
|
||||
Sun Jul 31 12:56:40 AM PDT 2022
|
||||
Sun Jul 31 01:32:19 PM PDT 2022
|
||||
|
Reference in New Issue
Block a user