Project

General

Profile

« Previous | Next » 

Revision 12f7e3d4

Added by Jim Pingle almost 12 years ago

Add upgrade code to change the DHCP next-server value to nextserver since it was renamed sometime in 2.1 but upgrade code didn't follow.

View differences:

etc/inc/globals.inc
72 72
	"disablecrashreporter" => false,
73 73
	"crashreporterurl" => "http://crashreporter.pfsense.org/crash_reporter.php",
74 74
	"debug" => false,
75
	"latest_config" => "9.8",
75
	"latest_config" => "9.9",
76 76
	"nopkg_platforms" => array("cdrom"),
77 77
	"minimum_ram_warning" => "101",
78 78
	"minimum_ram_warning_text" => "128 MB",
etc/inc/upgrade_config.inc
3144 3144
	/* Disable kill_states by default */
3145 3145
	$config['system']['kill_states'] = true;
3146 3146
}
3147

  
3148
function upgrade_098_to_099() {
3149
	global $config;
3150
	foreach ($config['dhcpd'] as & $dhcpifconf) {
3151
		if (isset($dhcpifconf['next-server'])) {
3152
			$dhcpifconf['nextserver'] = $dhcpifconf['next-server'];
3153
			unset $dhcpifconf['next-server'];
3154
		}
3155
	}
3156
}
3147 3157
?>

Also available in: Unified diff