Read default language from globals.inc instead of hardcoding (it was already defined there)
Set default anguage in General Setup to en_US
Since https://github.com/pfsense/pfsense/commit/fdcde31b4a910c4e058513c1e3f68a62e722da6b added German to the top of the get_locale_list() array, if you start with a default system and go to System->General Setup (make some changes to other fields if you like) and press Save, you end up in German because that is what gets selected in the dropdown when the config does not yet have a language in it....
Checks for DHCP Relay being enabled/disabled should be skipped when editting an additional pool
Fix comparisons for CDATA tags in config
Some length numbers here do not match the strings they are comparing with. That looks very odd.Note that:```substr($ent, 0, 5) == "text" ```will return true when $ent is "text". So actually this "works". But it returns false if $ent is "text1" "texta" etc....
Vendor MAC Retention - Update
Only write if changed or missing.
Vast majority of reboots will not have a change so don't hit the file system with a needless write. RAM disk enabled systems will always write due to missing the file on boot up.
Vendor MAC Retention File Consolidate
Use a single file for vendor MAC retention (vendor_mac). a) Writes only one file during boot up rather than a file for each interface. b) More efficient than numerous tiny files. c) Friendlier to write cycle sensitive media in a RAM disk disabled system.
Vendor MAC Retention File Relocate
Relocate the vendor MAC retention file to /var/db directory. a) It's more at home here with other network interface stuff. b) Friendlier to write cycle sensitive media in a RAM disk enabled system.
Vendor MAC Restore Logic
Only use the vendor MAC retention file for restoring the vendor MAC when not booting. a) During boot up the current MAC that is obtained from the system is the vendor MAC. b) Using this eliminates the inefficient need to open the vendor MAC retention file for every interface during system boot up.
Spoof MAC Var Name
Rename 'spoof_mac' var to generic 'mac_addr'. a) It may be the vendor MAC or a spoofed MAC. b) Update the comment re: not reapplying an already applied MAC.
Fix #7120: Restore vendor mac address when spoofmac is set to blank
View revisions
Also available in: Atom