S19video: wait for icamera before launching monitor

This commit is contained in:
Alfonso Gamboa 2023-07-19 12:53:14 -07:00
parent 9b2c2d735b
commit 86b4f38429

View File

@ -8,14 +8,20 @@
. /opt/wz_mini/etc/rc.common
. /opt/wz_mini/wz_mini.conf
delay_imp() {
wait_for_icamera
echo "Starting imp_monitor.sh in daemon mode..."
/opt/wz_mini/usr/bin/imp_monitor.sh --daemon
}
case "$1" in
start)
echo "#####$(basename "$0")#####"
echo "Starting imp_monitor.sh in daemon mode..."
/opt/wz_mini/usr/bin/imp_monitor.sh --daemon
delay_imp &
;;
*)