Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsmasq fixes and giving firmware spoofing its own option. #804

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

sideup66
Copy link
Contributor

Some minor fixes to the dnsmasq script since first upgrading to newer firmware. Includes detection for onboard wyze version of dnsmasq (slightly newer at the time of this commit) than wz_mini, also modifies the script to be a little smarter for resolv.conf detection.

Finally this pull gives firmware spoofing its own script. This should avoid problems should a user decide to update and potentially avoid any cloud problems with communicating with wyze services, if they are used.

Added logic to use the newly included dnsmasq process from Wyze on newer firmwares. First, the script will detect the newer dnsmasq process if present and kill it, next, it will determine if the newer dnsmasq binary IS present and start dnsmasq back up using our config from wz_mini. If not, it will simply launch wz_mini's build of dnsmasq. This effectively fixes the script for newer versions of the Wyze firmware.
small delay, noticed that somtimes on startup the resolv.conf doesnt  copy right...
Fixes to DnsMasq as something (Icamera, maybe?) would keep overwriting the file with a simple copy. This will remount it and make the resolv.conf read only.
Add option for spoofing firmware version
forgot output.
Smarter way to detect resolv.conf rather than waiting on a sleep function and HOPING its there...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant