diff options
author | Bill Marquette <billm@pfsense.org> | 2005-03-20 05:11:06 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-03-20 05:11:06 +0000 |
commit | 6fc886821d98aaacbcfb0ddbfe4c6f27aca3fb3a (patch) | |
tree | ad4b89a3f625df0178804fea5192ec633291f64f /etc | |
parent | 31eaad07fd166ef303e07f77ffce6f0a65515f3b (diff) | |
download | pfsense-6fc886821d98aaacbcfb0ddbfe4c6f27aca3fb3a.zip pfsense-6fc886821d98aaacbcfb0ddbfe4c6f27aca3fb3a.tar.gz |
write_config can now be passed a description of the change
will be used for version control descriptions
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 66c46a6..28f91dc 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -485,7 +485,7 @@ function convert_config() { } /* save the system configuration */ -function write_config() { +function write_config($desc="system created") { global $config, $g; $lastchange = $config['lastchange']; @@ -497,6 +497,8 @@ function write_config() { if (time() > mktime(0, 0, 0, 9, 1, 2004)) /* make sure the clock settings is plausible */ $config['lastchange'] = time(); + $config['lastchangedesc'] = $desc; + /* generate configuration XML */ $xmlconfig = dump_xml_config($config, $g['xml_rootobj']); |