Make a special file in /etc updated on first boot #26

Closed
lee.miller wants to merge 3 commits from lee.miller/openwrt:files into main
Collaborator

Hi!

Trying to implement making a file with custom ctime.

Hi! Trying to implement [making a file with custom ctime](https://git.bitmessage.org/Sysdeploy/openwrt/pulls/3#issuecomment-7609043).
lee.miller added 1 commit 2023-02-24 05:57:10 +00:00
lee.miller force-pushed files from bcd87c404a to 0c1d092c75 2023-03-01 15:41:24 +00:00 Compare
Owner

I deduced that a more appropriate approach is to edit include/version.mk and update SOURCE_DATE_EPOCH, e.g. with sed or whatever you prefer to edit files inline, can you do that?

I deduced that a more appropriate approach is to edit `include/version.mk` and update `SOURCE_DATE_EPOCH`, e.g. with `sed` or whatever you prefer to edit files inline, can you do that?
Owner

Also I'm not 100% sure your old approach would work as I don't know exactly when the time is reset, if it's done before it executed /etc/defaults, then you have to reboot after that to get the correct time, and that is a bit of a hassle.

Also I'm not 100% sure your old approach would work as I don't know exactly when the time is reset, if it's done before it executed `/etc/defaults`, then you have to reboot after that to get the correct time, and that is a bit of a hassle.
lee.miller force-pushed files from 0c1d092c75 to bb5e87deb5 2023-03-03 01:29:57 +00:00 Compare
lee.miller force-pushed files from bb5e87deb5 to 766003f466 2023-05-24 14:32:30 +00:00 Compare
Author
Collaborator

No more need

No more need
lee.miller closed this pull request 2023-05-30 18:58:14 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sysdeploy/openwrt#26
No description provided.