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

Camera no longer supplies the hostname to the dhcp server #563

Open
olivluca opened this issue Feb 2, 2025 · 3 comments
Open

Camera no longer supplies the hostname to the dhcp server #563

olivluca opened this issue Feb 2, 2025 · 3 comments

Comments

@olivluca
Copy link

olivluca commented Feb 2, 2025

I was using an old 0.4.x version and I just updated to the latest one (0.5.5).
Now the camera doesn't supply the correct hostname to the dhcp server, that's because in the script /home/yi-hack/script/wifidhcp.sh reads it from /tmp/sd/yi-hack/etc/hostname instead of from /home/yi-hack/etc/hostname (where the hostname is saved from the web interface).
That was done in commit 9cf96db, why?

@roleoroleo
Copy link
Owner

Sorry, I don't understand.
The script reads from /home/yi-hack/etc/hostname and it's the correct path.
Before the commit it was from /tmp/sd/yi-hack/etc/hostname

@olivluca
Copy link
Author

Ouch, you're right, the commit is correct, the problem is that the script in the camera points to the wrong file (/tmp/sd/yi-hack/etc/hostname).
Now I see that the commit was made on may 28 while 0.5.5 was released on april 11, so the fix is not there.
The wrong script was introduced with commit f37e918

@roleoroleo
Copy link
Owner

Yes, there was a copy/paste error from allwinner repo.
Use the current version of wifidhcp.sh.
It's ok.

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

No branches or pull requests

2 participants