summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/config.lib.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc
index 2edcea3..11e1ec3 100644
--- a/etc/inc/config.lib.inc
+++ b/etc/inc/config.lib.inc
@@ -397,12 +397,17 @@ function convert_config() {
include_once('auth.inc');
include_once('upgrade_config.inc');
+ if (file_exists("/etc/inc/upgrade_config_custom.inc"))
+ include_once("upgrade_config_custom.inc");
/* Loop and run upgrade_VER_to_VER() until we're at current version */
while ($config['version'] < $g['latest_config']) {
$cur = $config['version'] * 10;
$next = $cur + 1;
$migration_function = sprintf('upgrade_%03d_to_%03d', $cur, $next);
$migration_function();
+ $migration_function = "{$migration_function}_custom";
+ if (function_exists($migration_function))
+ $migration_function();
$config['version'] = sprintf('%.1f', $next / 10);
if($g['booting'])
echo ".";
@@ -847,4 +852,4 @@ function set_device_perms() {
}
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud