[no ci] Overlay: check current time before setting timestamp

pull/1531/head
viktorxda 2024-08-20 23:18:33 +02:00
parent 9bb9dccd67
commit 9b769abd1d
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,10 @@
case "$1" in case "$1" in
start) 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 if [ ! -e /etc/custom.ok ] && [ -e /usr/share/openipc/customizer.sh ]; then
echo "Run customizer script..." echo "Run customizer script..."