From a0551d801083738ae31f7ba22f277ffefb0be05c Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 8 Jul 2018 14:19:30 +0200 Subject: [PATCH] Check simlink (#90) --- buildroot-external/misc/rauc-hook | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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