config: update to include migration of the dvb networks folder
This commit is contained in:
parent
bb678d9359
commit
3748173605
1 changed files with 15 additions and 1 deletions
16
src/config.c
16
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
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue