From 6d31bc3a95d349285161af09d280dc5d4e37fd7e Mon Sep 17 00:00:00 2001
From: Roxedus <me@roxedus.dev>
Date: Thu, 28 Jan 2021 13:35:35 +0100
Subject: [PATCH] Add warning regarding time being out of sync on armv7l

Requires linuxserver/docker-documentation#32 to be merged
---
 root/etc/cont-init.d/10-adduser | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/root/etc/cont-init.d/10-adduser b/root/etc/cont-init.d/10-adduser
index 6efe28d..140e3a7 100644
--- a/root/etc/cont-init.d/10-adduser
+++ b/root/etc/cont-init.d/10-adduser
@@ -6,11 +6,25 @@ PGID=${PGID:-911}
 groupmod -o -g "$PGID" abc
 usermod -o -u "$PUID" abc
 
+if [ "$(date +%Y)" == "1970" ] && [ "$(uname -m)" == "armv7l" ]; then
+  echo '
+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+
+Your DockerHost is most likely running an outdated version of libseccomp
+
+To fix this, please visit https://docs.linuxserver.io/faq#libseccomp
+
+Some apps might not behave correctly without this
+
+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+'
+fi
+
 echo '
 -------------------------------------
           _         ()
          | |  ___   _    __
-         | | / __| | |  /  \ 
+         | | / __| | |  /  \
          | | \__ \ | | | () |
          |_| |___/ |_|  \__/
 
-- 
GitLab