8.2.34 | Linux | www-data (uid:33)
👁 View: hwclock-set
📁 //snap/core20/current/lib/udev/hwclock-set
#!/bin/sh # Reset the System Clock to UTC if the hardware clock from which it # was copied by the kernel was in localtime. dev=$1 if [ -e /run/systemd/system ] ; then exit 0 fi if [ -e /run/udev/hwclock-set ]; then exit 0 fi if [ -f /etc/default/rcS ] ; then . /etc/default/rcS fi # These defaults are user-overridable in /etc/default/hwclock BADYEAR=no HWCLOCKACCESS=yes HWCLOCKPARS= HCTOSYS_DEVICE=rtc0 if [ -f /etc/default/hwclock ] ; then . /etc/default/hwclock fi if [ yes = "$BADYEAR" ] ; then /sbin/hwclock --rtc=$dev --systz --badyear /sbin/hwclock --rtc=$dev --hctosys --badyear else /sbin/hwclock --rtc=$dev --systz /sbin/hwclock --rtc=$dev --hctosys fi # Note 'touch' may not be available in initramfs > /run/udev/hwclock-set
← Back
💻 Terminal
📤 Upload
📂
Click or Drag & Drop
📁 //snap/core20/current/lib/udev
NameSizePermModifiedActions
📁 hwdb.d/-07552026-09-01 05:21🗑 Delete
📁 rules.d/-07552026-09-01 05:21🗑 Delete
ata_id62.3K07552026-03-13 16:48👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
cdrom_id78.3K07552026-03-13 16:48👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
fido_id94.5K07552026-03-13 16:48👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
hwclock-set776B07552026-03-06 16:20👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
hwdb.bin9.5M04442026-09-01 05:19👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
mtd_probe18.2K07552026-03-13 16:48👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
scsi_id78.9K07552026-03-13 16:48👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del
v4l_id18.2K07552026-03-13 16:48👁 View ✏️ Edit 📝 Rename 📦 Move 🗑 Del