fix mp4write

This commit is contained in:
Alfonso Gamboa 2022-08-03 14:22:56 -07:00
parent ad1d9fa1bd
commit ec28bd4219
4 changed files with 20 additions and 4 deletions

View File

@ -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
}

View File

@ -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 &

View File

@ -1 +1 @@
Tue Aug 2 08:32:39 PM PDT 2022
Wed Aug 3 02:22:39 PM PDT 2022

View File

@ -52,7 +52,7 @@ e3034eac02d8eda9902ca9cf89f0a586 SD_ROOT/wz_mini/etc/inittab
d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/etc/rc.local.d/.gitignore
3ea3585cf333914f730494dee68e4ccb SD_ROOT/wz_mini/etc/wz_mini.conf.dist
4291fb00ec609b5b007ff9b3048e9248 SD_ROOT/wz_mini/etc/hosts
a856cf7998a5e556654e649a15c3fba5 SD_ROOT/wz_mini/etc/rc.common
21159766181abcce4cde59f54bb83962 SD_ROOT/wz_mini/etc/rc.common
8b5e58acfcbb20034dc4873a08b45fd9 SD_ROOT/wz_mini/etc/profile
574a0198606cf3a2255843cd1ed7860a SD_ROOT/wz_mini/etc/cron/root
2c2df1b9cb603f9c31c46162d6ac307f SD_ROOT/wz_mini/etc/alsa/alsa.conf
@ -67,7 +67,7 @@ b8705ccc4f08347d3676bb57f737c2a1 SD_ROOT/wz_mini/etc/rc.d/K03rcd
dd8ced14fa4eeceaf3c49774e8762e9b SD_ROOT/wz_mini/etc/rc.d/S14nightdrop
e6e927ae715137152178ff317d17b8f2 SD_ROOT/wz_mini/etc/rc.d/S03ethernet
b4a838e79e92355a8b016b0e482b22b5 SD_ROOT/wz_mini/etc/rc.d/S20cron
8cf971c14e1340af9eb86c3b82f38131 SD_ROOT/wz_mini/etc/rc.d/S13mp4write
22b999594f237453f821b68248b34156 SD_ROOT/wz_mini/etc/rc.d/S13mp4write
769776b26247d680ca564c9af3288c91 SD_ROOT/wz_mini/etc/rc.d/S05rndis
19ff129af984cf133c92e9c524dda401 SD_ROOT/wz_mini/etc/rc.d/S01swap
bbccf00adaf0b2494a98f18769e10a0f SD_ROOT/wz_mini/etc/rc.d/K15logging
@ -153,7 +153,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
06cfacf035480b477d43fb18c93b0ed8 SD_ROOT/wz_mini/usr/bin/app.ver
9d3e0680b05861463e02f7659f700660 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