Main repository for pfSense
Go to file
Phil Davis f4462954aa Unset logfilesize rather than let it be zero
1) When saving Status: System logs: Settings, if the Log File Size field is left blank, it gets cast to (int) and ends pu as zero "0" in config.xml. That breaks the creation of clog files in /etc/rc during boot. /etc/rc expects logfilesize to be unset, blank or a valid integer >= 5120.
So, if the field is empty, then make sure that it is unset in config.xml
2) For data items that are cast to (int) whenputting into the config (nentries and logfilesize), copy the resulting value back to the $pconfig array. When the user enters 123.45 the in field, is correctly truncated to (int) 123 in config.xml. By copying that back to $pconfig, the "123" also appears correctly on the GUI page after the save.
3) Mention the units of measure of Log File Size (Bytes)
4) Mention that the user should press Save first when changing values, then they can use "Reset Log Files" to set the log file sizes to the just-saved value.
5) Display a message when the log files have been reset - it's a bit more user-friendly IMHO.
2014-04-14 07:40:17 -07:00
boot Add hw.usb.no_pf="1" to loader.conf on nanobsd 2013-02-01 22:58:38 +01:00
cf/conf trigger setup wizard 2009-11-16 01:44:37 -05:00
conf.default Added support for UEFI booting to Network Booting configuration. 2014-03-02 21:47:39 -08:00
etc Avoid warnings later on if no config for layer7 exists 2014-04-14 13:48:39 +00:00
root Add nonewline to end of file to avoid issues when new options are added 2013-04-29 11:05:22 -03:00
sbin Remove unused ppp-script 2014-03-28 23:15:46 +01:00
tmp Get rid of embedded platform. Its time to GC this 2014-04-14 13:06:28 +00:00
usr Unset logfilesize rather than let it be zero 2014-04-14 07:40:17 -07:00
.gitattributes include gettext locales in line encoding list 2014-01-13 22:05:10 -05:00
.gitignore Ignore vim swap files 2013-03-08 14:41:01 -03:00