-
Notifications
You must be signed in to change notification settings - Fork 112
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
How to add static IP address #208
Comments
At the moment it's not possible. |
create on microsd folder yi-hack and file there with name startup.sh
then in ssh: chmod 755 /tmp/sd/yi-hack/startup.sh and reboot I aslo use killall -9 udhcpc but i'm not sure it's needed here |
I created a wiki page. |
Hello and again sorry for reopening an issue. I noticed that for the Allwinner version of the hack firmware, there's no wiki page regarding the fixed IP. If this is because it cannot be applied, please disregard the following. The camera appears not getting always the new (fixed) IP; often it is available again at the IP assigned by the router. I tried compiling the firmware from latest master branch, successfully installed, but it behaves the same. |
but
|
Add killall -9 udhcpc after #!/bin/sh |
I setup a fixed IP via the router itself, but I would try just to see if it works... |
How do you fix the ip via the router ? |
I think it may depend on the router, but on mine you have to go to settings, LAN, find MAC address for the device and then open a dialog window where you can specify a fixed IP for it. |
This morning the cam was reverted to router's IP ... |
I think there is a process (yi process) that renew the udhcpc daemon. |
Understood, I'll try again with the router. |
Or try to rename binary or change execution rights |
What binary? udhcpc? |
@dentex yes. Chmod -x udhcpc |
|
@dentex chmod -x /home/app/script/wifidhcp.sh |
I'm sure this one would work, but I'll stay with the static lease via the router (actually it's |
hello, I have this same issue with startup file. I was able to change IP with SSH command but it looks like startup file is not loading during camera initialization. rights to startup.sh was added successfully so file should be accessible. maybe loading this startup file at the beginning is missing. FRN 8.x |
@poprostumarek add to file: echo 1 > /tmp/sd/1.txt and reboot to check if script ever work |
Hi, it doesn't work. there is no new file in this directory. system.sh script from home/yi-hack/script has record: if [ -f "/tmp/sd/yi-hack/startup.sh" ]; then but it doesn't seem to work |
@poprostumarek Unfortunately I have no ideas. Startup.sh script worked on previous build and I haven't that something changed in current |
rights were added.
while using only:
there is this same issue. In fileZilla I can see correct rights and path. camera was reset to factory defaults. I have used notepad++ for .sh file |
@poprostumarek just checked on mine. It works. I have y203c |
@poprostumarek which capacity does microsd have? |
@bonuzzz I tried different card 8GB instead of 32GB and the sam result. it was y6xxx version |
@poprostumarek theoretically you could add the code to system.sh, but it's risky. if possible, much better and safer to assign ip on dhcp server. |
@bonuzzz I will dig into this in my free time. Thanks for checking! |
even with dhcp ip reservation. the cam gets an wrongip: |
My cameras were turned off and then reset their IP addresses meaning I had to re-register them in my NVR software manually. Is there a way to give them a static IP address?
The text was updated successfully, but these errors were encountered: