From 30c2ac6902ab1fa842c58ff1390050f49e6d4a74 Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt <buttjantarek@googlemail.com> Date: Wed, 28 Oct 2015 17:58:14 +0100 Subject: [PATCH] add backwards compatibility for netmon.ffnw url --- .../files/lib/gluon/upgrade/550-configurator-conf | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 configurator/files/lib/gluon/upgrade/550-configurator-conf diff --git a/configurator/files/lib/gluon/upgrade/550-configurator-conf b/configurator/files/lib/gluon/upgrade/550-configurator-conf new file mode 100644 index 0000000..91e712c --- /dev/null +++ b/configurator/files/lib/gluon/upgrade/550-configurator-conf @@ -0,0 +1,11 @@ +#!/usr/bin/lua + +local uci = require('luci.model.uci').cursor() +local config = 'configurator' +local ipv6_address = uci:get(config, uci:get_first(config, 'api'), 'ipv6_address') + +if not ( ipv6_address == 'netmon.ffnw' ) then + uci:set(config, uci:get_first(config, 'api'), 'ipv6_address', 'netmon.ffnw') + uci:save(config) + uci:commit(config) +end -- GitLab