fix syslog init blocking

This commit is contained in:
Alfonso Gamboa 2022-08-03 14:38:34 -07:00
parent 12a4549b5e
commit c0544df484
3 changed files with 10 additions and 4 deletions

View File

@ -3,7 +3,9 @@
source /opt/wz_mini/etc/rc.common
source /opt/wz_mini/wz_mini.conf
wait_for_icamera
syslog_save() {
wait_for_icamera &
if [[ "$ENABLE_SYSLOG_SAVE" == "true" ]]; then
echo "Store syslog logs"
@ -20,3 +22,7 @@ fi
touch -- "$SYSLOG_LOG".log
logread -F > $SYSLOG_LOG.log &
fi
}
syslog_save &

View File

@ -1 +1 @@
Wed Aug 3 02:30:25 PM PDT 2022
Wed Aug 3 02:37:59 PM PDT 2022

View File

@ -71,7 +71,7 @@ b4a838e79e92355a8b016b0e482b22b5 SD_ROOT/wz_mini/etc/rc.d/S20cron
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
e100198faa2ea8153500331de667ad8e SD_ROOT/wz_mini/etc/rc.d/S21syslog
a638bd4ec5c359380c22d00813883cc6 SD_ROOT/wz_mini/etc/rc.d/S21syslog
69840400ee805665a3a4913003cf60db SD_ROOT/wz_mini/etc/rc.d/S04usbdirect
093ae35263b39668da01bee03e81cbe9 SD_ROOT/wz_mini/etc/rc.d/S09coredump
9e5591da95042bcca910403bde25dc60 SD_ROOT/wz_mini/etc/fstab
@ -154,7 +154,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
f0bc707e7c4a6841569229deccd00a9a SD_ROOT/wz_mini/usr/bin/app.ver
5d7cc51a99f713d86b4dce4e2ad983cf 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