[no ci] Overlay: check current time before setting timestamp (#1531)

pull/1534/head
viktorxda 2024-08-21 01:37:09 +02:00 committed by GitHub
parent 1bf4fd84f2
commit 4b17c594ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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..."