Possible error in /etc/s6/sv/hwclock/down
Hello,
I think there is a bug in the /etc/s6/sv/hwclock/down, the script is executed on system shutdown so it is supposed to save the value of the system clock to the hardware clock.
The current source code is: (taken from here)
#!/bin/execlineb -P
envfile /etc/s6/config/hwclock.conf
importas -uD "UTC" HARDWARECLOCK HARDWARECLOCK
ifelse { test $HARDWARECLOCK = UTC } { hwclock --systz --utc --noadjfile } hwclock --systz --localtime --noadjfile
The --systz option does not save anything to the hw clock (it is the option used in start), I believe both occurrencies of --systz should be replaced with --systohc, like in the runit script