archboot/usr/lib/initcpio/install/archboot_tz
Tobias Powalowski 7206f7c7f8 change message
2021-10-04 11:13:50 +02:00

26 lines
579 B
Bash

#!/usr/bin/env bash
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
add_binary "hwclock"
add_binary "date"
add_binary "ntpdate"
add_binary "ntpd"
add_file "/etc/ntp.conf"
for i in $(find /usr/share/zoneinfo ! -type d); do
add_file $i
done
add_dir "/var/lib/ntp"
chown ntp:root "$BUILDROOT/var/lib/ntp"
add_file "/usr/bin/archboot-tz.sh" "/usr/bin/tz"
# fix licenses
add_file "/usr/share/licenses/ntp/LICENSE"
}
help ()
{
cat<<HELPEOF
This hook includes the timezone data on an archboot image.
HELPEOF
}