#!/bin/execlineb -P if { s6-echo "[ Shutdown ] : Saving sytem clock to rtc0" } envfile /etc/s6/s6.conf importas -iu HARDWARECLOCK HARDWARECLOCK foreground { if { s6-test $HARDWARECLOCK = UTC } hwclock --systohc --utc --noadjfile } foreground { if { s6-test $HARDWARECLOCK = localtime } hwclock --systohc --localtime --noadjfile }