From 374817360552c12c6f492d9862b101352fce7b86 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Fri, 4 Apr 2014 15:31:49 +0100 Subject: [PATCH] config: update to include migration of the dvb networks folder --- src/config.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 38bdb3c2..228d1928 100644 --- a/src/config.c +++ b/src/config.c @@ -473,12 +473,26 @@ config_migrate_v2 ( void ) } } +/* + * v2 -> v3 : changes to DVB layout + */ +static void +config_migrate_v3 ( void ) +{ + char src[1024], dst[1024]; + + hts_settings_buildpath(src, sizeof(src), "input/linuxdvb/networks"); + hts_settings_buildpath(dst, sizeof(dst), "input/dvb/networks"); + rename(src, dst); +} + /* * Migration table */ static const config_migrate_t config_migrate_table[] = { config_migrate_v1, - config_migrate_v2 + config_migrate_v2, + config_migrate_v3 }; /*