diff --git a/buildroot-external/misc/rauc-hook b/buildroot-external/misc/rauc-hook index ca2503fa6..c041a7960 100755 --- a/buildroot-external/misc/rauc-hook +++ b/buildroot-external/misc/rauc-hook @@ -16,8 +16,8 @@ fi # Fixups # timesyncd -if [ ! -d /var/lib/systemd/timesync ]; then - rm /var/lib/systemd/timesync +if [ -L /var/lib/systemd/timesync ]; then + rm -f /var/lib/systemd/timesync fi exit 0