diff --git a/hooks/50-timesyncd.conf b/hooks/50-timesyncd.conf index dff88173..8ee722bd 100644 --- a/hooks/50-timesyncd.conf +++ b/hooks/50-timesyncd.conf @@ -1,3 +1,10 @@ +if [ ! -d /run/systemd/system ]; then + return +fi +if [ ! -x /lib/systemd/systemd-timesyncd ]; then + return +fi + : ${timesyncd_conf_d:=/run/systemd/timesyncd.conf.d} timesyncd_conf="${timesyncd_conf_d}/dhcpcd-$ifname.conf" timesyncd_tmp_d="$state_dir/timesyncd"