archboot/usr/lib/initcpio/install/archboot_tz
2022-02-01 12:37:39 +01:00

25 lines
602 B
Bash

#!/usr/bin/env bash
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
apps="hwclock date ntpdate ntpd ntp-keygen ntp-wait ntpdc ntpq \
ntptime ntptrace tzselect"
for i in $apps; do
add_binary "$i"
done
add_file "/etc/ntp.conf"
add_full_dir "/usr/share/zoneinfo"
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
}