You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
349 B
14 lines
349 B
#!/bin/sh |
|
# This file is part of dracut warpclock module. |
|
# SPDX-License-Identifier: GPL-2.0-or-later |
|
|
|
# Set the kernel's timezone and reset the system time |
|
# if adjtime is set to LOCAL. |
|
|
|
if test -e /etc/adjtime; then |
|
while read -r line; do |
|
if test "$line" = LOCAL; then |
|
hwclock --systz |
|
fi |
|
done < /etc/adjtime |
|
fi
|
|
|