diff --git a/skel-root/general/scripts/camd_datefix.init b/skel-root/general/scripts/camd_datefix.init index 3bf8a23f..40f8838a 100644 --- a/skel-root/general/scripts/camd_datefix.init +++ b/skel-root/general/scripts/camd_datefix.init @@ -14,9 +14,10 @@ case "$1" in SHOWINFO "can't work. /etc/date-dummy is missing" exit 1 fi + DATE_DUMMY=$(cat /etc/date-dummy) DATE_TODAY=$(date +%Y%m%d%H%M) - # keep line below in sync with dummy time in rcS + if [ "${DATE_TODAY:0:8}" = "${DATE_DUMMY:0:8}" ]; then # try to read date from flagfile test -e $FLAGFILE && \