From 072d645f7ea40fe231639dee50d33354d804b62e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 22 Feb 2014 08:40:07 +0100 Subject: [PATCH] Add legacy upgrade support --- site.conf | 11 +++++++++++ site.mk | 1 + 2 files changed, 12 insertions(+) diff --git a/site.conf b/site.conf index 0b7d151..9bf9386 100644 --- a/site.conf +++ b/site.conf @@ -124,4 +124,15 @@ Viel Spaß mit deinem Knoten und der Erkundung von Freifunk!

END }, + + legacy => { + version_files => ['/etc/.freifunk_version_keep', '/etc/.lff_version_keep'], + old_files => ['/etc/config/config_mode', '/etc/config/ffhl', '/etc/config/freifunk'], + + config_mode_configs => ['config_mode.@wizard[0]', 'ffhl.@wizard[0]', 'freifunk.@wizard[0]'], + fastd_configs => ['ffhl_mesh_vpn', 'mesh_vpn'], + mesh_ifname => 'freifunk', + tc_configs => ['ffhl.@bandwidth[0]', 'freifunk.@bandwidth[0]'], + wifi_names => ['wifi_freifunk', 'wifi_freifunk5', 'wifi_mesh', 'wifi_mesh5'], + }, } diff --git a/site.mk b/site.mk index 135cf53..53b5124 100644 --- a/site.mk +++ b/site.mk @@ -4,6 +4,7 @@ GLUON_SITE_PACKAGES := \ gluon-config-mode \ gluon-ebtables-filter-multicast \ gluon-ebtables-filter-ra-dhcp \ + gluon-legacy \ gluon-luci-admin \ gluon-luci-autoupdater \ gluon-next-node \