0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 13.58.61.176


Current Path : /proc/thread-self/root/usr/share/initramfs-tools/hooks/
Upload File :
Current File : //proc/thread-self/root/usr/share/initramfs-tools/hooks/fixrtc

#!/bin/sh -e
# initramfs hook for fixing broken rtc clock
# without battery

MINKVER="2.6.24"
PREREQ="udev"

# Output pre-requisites
prereqs()
{
        echo "$PREREQ"
}

case "$1" in
    prereqs)
        prereqs
        exit 0
        ;;
esac

. /usr/share/initramfs-tools/hook-functions

# We use date, hwclock and dumpe2fs
copy_exec /bin/date /bin
copy_exec /sbin/hwclock /sbin
copy_exec /sbin/dumpe2fs /sbin