Skip to content

Commit

Permalink
[no ci] Overlay: check current time before setting timestamp (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorxda committed Aug 20, 2024
1 parent 1bf4fd8 commit 4b17c59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion general/overlay/etc/init.d/S30customizer
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

case "$1" in
start)
date -s @$(grep TIME_STAMP /etc/os-release | cut -d= -f2)
time=$(grep TIME_STAMP /etc/os-release | cut -d= -f2)
if [ $time -gt $(date +%s) ]; then
date -s @$time
fi

if [ ! -e /etc/custom.ok ] && [ -e /usr/share/openipc/customizer.sh ]; then
echo "Run customizer script..."
Expand Down

0 comments on commit 4b17c59

Please sign in to comment.