|
@ -14,9 +14,10 @@ case "$1" in |
|
|
SHOWINFO "can't work. /etc/date-dummy is missing" |
|
|
SHOWINFO "can't work. /etc/date-dummy is missing" |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
DATE_DUMMY=$(cat /etc/date-dummy) |
|
|
DATE_DUMMY=$(cat /etc/date-dummy) |
|
|
DATE_TODAY=$(date +%Y%m%d%H%M) |
|
|
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 |
|
|
if [ "${DATE_TODAY:0:8}" = "${DATE_DUMMY:0:8}" ]; then |
|
|
# try to read date from flagfile |
|
|
# try to read date from flagfile |
|
|
test -e $FLAGFILE && \ |
|
|
test -e $FLAGFILE && \ |
|
|