From a598819c1a172c5d0fbe8ab593be80b833355df5 Mon Sep 17 00:00:00 2001 From: Daniel Kulp Date: Mon, 6 Nov 2023 07:02:09 -0500 Subject: [PATCH] Update the /etc scripts --- etc/networkd-dispatcher/routable.d/ntpd | 2 ++ upgrade/80/upgrade.sh | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100755 etc/networkd-dispatcher/routable.d/ntpd create mode 100755 upgrade/80/upgrade.sh diff --git a/etc/networkd-dispatcher/routable.d/ntpd b/etc/networkd-dispatcher/routable.d/ntpd new file mode 100755 index 000000000..79d2cf248 --- /dev/null +++ b/etc/networkd-dispatcher/routable.d/ntpd @@ -0,0 +1,2 @@ +#!/bin/sh +/usr/bin/systemctl restart ntp diff --git a/upgrade/80/upgrade.sh b/upgrade/80/upgrade.sh new file mode 100755 index 000000000..43e0d8aef --- /dev/null +++ b/upgrade/80/upgrade.sh @@ -0,0 +1,10 @@ +#!/bin/bash +##################################### + +BINDIR=$(cd $(dirname $0) && pwd) +. ${BINDIR}/../../scripts/common + +if [ ! -f /etc/fpp/desktop ]; then + # recopy the latest connect scripts + cp -af /opt/fpp/etc/networkd-dispatcher/routable.d/* /etc/networkd-dispatcher/routable.d +fi