mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-08-09 20:14:04 +00:00
fix mp4write
This commit is contained in:
@@ -51,3 +51,10 @@ while true; do
|
||||
sleep 5
|
||||
done
|
||||
}
|
||||
|
||||
wait_for_icamera() {
|
||||
while ! pgrep -f "/system/bin/iCamera" > /dev/null; do
|
||||
sleep 5
|
||||
done
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
source /opt/wz_mini/etc/rc.common
|
||||
source /opt/wz_mini/wz_mini.conf
|
||||
|
||||
|
||||
mp4write() {
|
||||
|
||||
wait_for_icamera
|
||||
|
||||
if [[ "$ENABLE_MP4_WRITE" == "true" ]]; then
|
||||
if [ -f /opt/wz_mini/tmp/.T20 ]; then
|
||||
echo "mp4_write is not supported on T20"
|
||||
@@ -12,3 +18,6 @@ if [[ "$ENABLE_MP4_WRITE" == "true" ]]; then
|
||||
else
|
||||
echo "mp4_write disabled"
|
||||
fi
|
||||
}
|
||||
|
||||
mp4write &
|
||||
|
@@ -1 +1 @@
|
||||
Tue Aug 2 08:32:39 PM PDT 2022
|
||||
Wed Aug 3 02:22:39 PM PDT 2022
|
||||
|
Reference in New Issue
Block a user