From e03fb9f8eb0dffb46f66831a8b16eeba050ecdc9 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 21 Jan 2014 04:16:21 +0100 Subject: [PATCH] gluon-core: add support for NTP server configuration --- .../lib/gluon/upgrade/core/invariant/011-ntp-servers | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 package/gluon-core/generate/lib/gluon/upgrade/core/invariant/011-ntp-servers diff --git a/package/gluon-core/generate/lib/gluon/upgrade/core/invariant/011-ntp-servers b/package/gluon-core/generate/lib/gluon/upgrade/core/invariant/011-ntp-servers new file mode 100755 index 00000000..fa69b053 --- /dev/null +++ b/package/gluon-core/generate/lib/gluon/upgrade/core/invariant/011-ntp-servers @@ -0,0 +1,12 @@ +#!/bin/sh + +[ -n '@ntp_servers@' ] || exit 0 + + +uci delete system.ntp.server + +for server in @ntp_servers@; do + uci add_list system.ntp.server="$server" +done + +uci commit system