mirror of https://github.com/OpenIPC/firmware.git
[no ci] Overlay: check current time before setting timestamp (#1531)
parent
1bf4fd84f2
commit
4b17c594ff
|
@ -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..."
|
||||||
|
|
Loading…
Reference in New Issue