armbian-build/extensions/network/net-systemd-timesyncd.sh
ColorfulRhino 497c6dce0e extension: net: Refactor, fix and improve network extensions
- Rename extensions with "net-*" prefix
- Put the extensions into their own folder
- Split off time sync packages into their own extensions to be able to be used separately
- Put their config files into directories instead of using inline `cat <<- EOF >`
- Move some other NetworkManager related stuff into the extension
- Remove unneeded steps
- Install iproute2 by default on all images (for the `ip` command)
2024-06-20 19:59:52 +02:00

15 lines
524 B
Bash

#
# Extension to manage network time synchronization with systemd-timesyncd
#
function add_host_dependencies__install_systemd-timesyncd() {
display_alert "Extension: ${EXTENSION}: Installing additional packages" "systemd-timesyncd" "info"
add_packages_to_rootfs systemd-timesyncd
}
function pre_install_kernel_debs__configure_systemd-timesyncd()
{
# Enable timesyncd
display_alert "Extension: ${EXTENSION}: Enabling systemd-timesyncd" "" "info"
chroot_sdcard systemctl enable systemd-timesyncd.service
}