mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 20:42:58 +02:00
setclock: accept also empty logfile timestamp
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -32,7 +32,7 @@ case ${1} in
|
||||
hwclock --hctosys ${CLOCKPARAMS} &>/dev/null
|
||||
date
|
||||
|
||||
if [ -s /var/log/messages ]; then
|
||||
if [ -e /var/log/messages ]; then
|
||||
LOGTIMESTAMP=`stat --format "%y" /var/log/messages`
|
||||
LOGTIME=`date +%s -d "$LOGTIMESTAMP"`
|
||||
SYSTIME=`date +%s`
|
||||
|
||||
Reference in New Issue
Block a user