ifthenelse -s
{
  envfile -I /etc/default/hwclock
  importas -uD "no" BADYEAR BADYEAR
  test $BADYEAR = yes
}
{
  define -s badyear "--badyear"
}
{
  define -s badyear ""
}
foreground { hwclock --rtc=/dev/rtc0 --systohc --utc --noadjfile $badyear }
