Tidy up percentage logging to console

When on the console, the code only intended to update the percentage downloaded every 10%. Due to string-and-int type differences, the test was not working, all percentages were being logged. This is fixed.
Also, add a newline after 100% - then whatever outputs next gets a clean start on a new line of output.
Tidies up the console output during a post-firmware-upgrade package install.
Merge pull request #198 from phil-davis/master

Tidy up percentage logging to console
Tidy package cleanup output

Add a "done." and newline after "Cleaning up..."
Then when output is going to the serial console the next line will start cleanly and %age figures will not write over the top of "Clean".
Merge pull request #199 from phil-davis/master

Tidy package cleanup output
require filter.inc so filter_configure is defined

The "renew" button on a DHCP connection ends up calling function interface_dhcpv6_configure() in interfaces.inc, which in turn calls filter_configure() (in filter.inc) but gives the error:
Fatal error: Call to undefined function filter_configure() in /etc/inc/interfaces.inc on line 3350
See forum post: http://forum.pfsense.org/index.php/topic,52046.0.html
Merge pull request #200 from phil-davis/master

require filter.inc so filter_configure is defined
Ensure conf_mount_rw and conf_mount_ro are matched

On nanobsd, running /etc/rc.update_bogons.sh gives:
[2.1-BETA0][admin@test02.homedomain]/tmp(12): /etc/rc.update_bogons.sh 1
/etc/rc.update_bogons.sh: cannot create /etc/bogonsv6: Read-only file system
The code does 1 conf_mount_rw but 2 conf_mount_ro
This is also seen in system.log:
Aug  2 17:47:59 test02 admin: rc.update_bogons.sh is starting up.
Aug  2 17:47:59 test02 admin: rc.update_bogons.sh is beginning the update cycle.
Aug  2 17:49:27 test02 admin: Bogons file downloaded:  1 addresses added.
Aug  2 17:49:29 test02 php: : Reference 1000 is going negative, not doing unreference.
Aug  2 17:49:29 test02 admin: Bogons files downloaded:  no changes.
Aug  2 17:49:29 test02 admin: rc.update_bogons.sh is ending the update cycle.

The V6 bogons file does not get applied because the filesystem is RO by that point.

I have reviewed the whole logic of this shell script. I believe it handles the various cases correctly now. On nanobsd I get the following in system.log:
Aug  2 18:17:13 test02 admin: rc.update_bogons.sh is starting up.
Aug  2 18:17:13 test02 admin: rc.update_bogons.sh is beginning the update cycle.
Aug  2 18:18:02 test02 admin: Bogons V4 file downloaded:  no changes.
Aug  2 18:18:10 test02 admin: Bogons V6 file downloaded:  58959 addresses added.
Aug  2 18:18:52 test02 admin: rc.update_bogons.sh is ending the update cycle.
In order for miniupnpd to latch onto IPv6, we just need to give the interface name here, not the subnet. The daemon is smart enough to latch onto the right subnet(s) here anyhow.
Merge pull request #201 from phil-davis/master

Bogons updated - make sure conf_mount_rw and conf_mount_ro are matched
Activate more Hash, DH, and PFS options that are available in racoon now. Note that SHA256-512 are RFC4868 compliant in FreeBSD, may break with other incompatible stacks.
Minor fix to percentage output on pkg install

A variable not changed in a cut-paste.
When on console, update_progress_bar should also only be called for 1-9 then every 10% progress, to reduce serial output volume.
Merge pull request #203 from phil-davis/master

Minor fix to percentage output on pkg install
pkg_mgr_install - only mount rw when needed

When entering pkg_mgr_install the filesystem was being mounted rw and a backup made of the config, even if the case was "showlog" or "installedinfo". This resulted in:
a) an extra "backup" of the config being made after an install - it could be seen in Diagnostics, Backup Restore, Config History
b) Unnecessary conf_mount_rw and conf_mount_ro calls. These slow down the process on nanobsd-like systems.
This change fixes both these issues.
Merge pull request #204 from phil-davis/master

pkg_mgr_install - only mount rw when needed
Probably more comment should be put in the code.
Minor text typo in DynDNS log message

I noticed the "Inital" typo in my syslog, so thought I might as well scan through the DynDNS messages and fix it up.
Merge pull request #205 from phil-davis/master

Minor text typo in DynDNS log message
firmware_update_misc log file name out of date

The name was changed to /conf/firmware_update_misc_log.txt in etc/rc.firmware quite a while ago. It needs fixing here in diag_nanobsd.php also.
Merge pull request #207 from phildd/master

firmware_update_misc log file name out of date
Change rcfileprefix to a constant
Change rcfileprefix to a constant