Fix ntp.start with Dash shell

This commit is contained in:
2024-01-13 11:51:41 -05:00
parent b76e2a3f4d
commit 476a1545e0
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/sh
old_timestamp="$(</etc/local.d/.ntpsync)"
old_timestamp="$(cat /etc/local.d/.ntpsync)"
new_timestamp="$(date +%s)"
if [ "$((new_timestamp-old_timestamp))" -gt 604800 ]; then
ntpdate -b pool.ntp.org