mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-01-09 14:17:02 +00:00
S19video: wait for icamera before launching monitor
This commit is contained in:
parent
9b2c2d735b
commit
86b4f38429
@ -8,14 +8,20 @@
|
|||||||
. /opt/wz_mini/etc/rc.common
|
. /opt/wz_mini/etc/rc.common
|
||||||
. /opt/wz_mini/wz_mini.conf
|
. /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
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
|
||||||
echo "#####$(basename "$0")#####"
|
echo "#####$(basename "$0")#####"
|
||||||
|
|
||||||
echo "Starting imp_monitor.sh in daemon mode..."
|
delay_imp &
|
||||||
|
|
||||||
/opt/wz_mini/usr/bin/imp_monitor.sh --daemon
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user