setclock: set 2011-01-01 date when broken hardware clock is detected
This commit is contained in:
parent
bbc7c870b3
commit
12f2fb6d32
@ -27,6 +27,13 @@ case "$1" in
|
||||
hwclock --hctosys $CLOCKPARAMS
|
||||
evaluate_retval
|
||||
echo
|
||||
Y=`date +%Y`
|
||||
[ $Y -gt 2010 ] || {
|
||||
echo -n "Fixing broken hardware clock: "
|
||||
date -s 2010/01/01
|
||||
evaluate_retval
|
||||
echo
|
||||
}
|
||||
;;
|
||||
stop)
|
||||
echo -n "Setting clock: "
|
||||
|
Loading…
Reference in New Issue
Block a user