-
Notifications
You must be signed in to change notification settings - Fork 66
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
Cannot set timezone - Read-only file system #8
Comments
The rootfs is read only. |
I've done an ugly fix in /home/yi-hack/script/system.sh by adding |
In this manner, only "hacked" services start with new TZ. |
That's not the right way. For completely resolve this issue, I agree with you, we have to fix the TZ on OS level. It's just a temporary fix. |
Thank you for adding the setting in the config. However it doesn't seem to be retaining the setting. |
I retested it now and it seems to work. |
What timezone are you using? I'm trying America/Toronto which is "EST5EDT,M3.2.0,M11.1.0" And it doesn't work. Also tried just "EST5EDT" and same thing. |
CET-1CEST,M3.5.0,M10.5.0/3 You are using version 0.1.4 I guess |
Still no go. What can I do to help diagnose this? Yes, I was on 0.1.3 and upgraded through the web interface to 0.1.4 |
Check if the file /home/yi-hack/etc/system.conf contains the item "TIMEZONE". |
It does. root@yi-b73d:/home/yi-hack/etc# cat system.conf |
Try to add a new line after TIMEZONE= |
Ok, so adding the line didn't work but I was able to manually add it to system.conf. It still doesn't show anything in the "Timezone" text box on the Configurations page however the correct time is shown on the main information page. |
|
I can't understand... |
I restored 0.1.3 and upgraded again to 0.1.4. |
Has anyone tested this functionality with version 0.1.4? |
I tested with version 1.4.0. I added the TZ string (CET-1CEST,M3.5.0,M10.5.0/3) in the general settings of the web interface and it works well. I can see the TIMEZONE=CET-1CEST,M3.5.0,M10.5.0/3 in the /home/yi-hack/etc/system.conf without adding additional lines manually. I was a bit confused when I checked with #date command in ssh shell - still GMT time. But the snapshot and motion events present the right timezone. |
In shell you can't have the variable because there isn't profile file. |
Trying to set the appropriate timezone and receive this error after trying to run the command
echo TimeZone > /etc/TZ
-ash: can't create /etc/TZ: Read-only file system
Found at
https://github.com/TheCrypt0/yi-hack-v4/wiki/Setting-the-Timezone
The text was updated successfully, but these errors were encountered: