roleoroleo / yi-hack-Allwinner-v2

Custom firmware for Yi 1080p camera based on Allwinner platform
MIT License
752 stars 90 forks source link

y211ga: prevent running lower_half_init.sh twice #868

Closed dustin-richards-was-here closed 2 months ago

dustin-richards-was-here commented 2 months ago

Fixes an issue I came across where two of pretty much every yi-hack service was running, causing all sorts of issues. I'm not sure why this was happening, but lower_half_init.sh was consistently being ran twice on boot, about 4 seconds apart. Using firmware 9.0.36.03_202109231441.

Would a guard like this make sense to include in all the lower_half_init.sh scripts? I don't see it doing any harm, my biggest question is does /tmp start fresh on all cameras like it does on my y211ga?

roleoroleo commented 2 months ago

I've never seen this problem. Check if /backup/init.sh calls the script twice. But your pr is free :) I will add it to the other cams too. Thanks.