mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 20:10:36 +02:00
26 lines
582 B
Bash
26 lines
582 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/share/archboot/tz/tz" "/usr/bin/tz"
|
|
# fix licenses
|
|
add_file "/usr/share/licenses/ntp/LICENSE"
|
|
}
|
|
|
|
help ()
|
|
{
|
|
cat<<HELPEOF
|
|
This hook includes the timezone data on an arch boot image.
|
|
HELPEOF
|
|
}
|