diff options
author | doktornotor <notordoktor@gmail.com> | 2017-03-05 22:37:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-05 22:37:24 +0100 |
commit | bb5b7532733d7e60fbc2a2adfc51312c9d1ab4ce (patch) | |
tree | 4a88f5ae2bb54b7d02a2314b4a077511808b3411 /src/etc/inc/interfaces.inc | |
parent | fddb303af44e3d357e2ac4e602b77ab0ad28c6db (diff) | |
download | pfsense-bb5b7532733d7e60fbc2a2adfc51312c9d1ab4ce.zip pfsense-bb5b7532733d7e60fbc2a2adfc51312c9d1ab4ce.tar.gz |
Add reason to write_config() call
Diffstat (limited to 'src/etc/inc/interfaces.inc')
-rw-r--r-- | src/etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 90a5749..155da45 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -3298,8 +3298,8 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven mwexec("/sbin/ifconfig " . escapeshellarg($realhwif) . " link " . escapeshellarg($random_mac)); $wancfg['spoofmac'] = $random_mac; - write_config(); - file_notice("MAC Address altered", sprintf(gettext('The INVALID MAC address (ff:ff:ff:ff:ff:ff) on interface %1$s has been automatically replaced with %2$s'), $realif, $random_mac), "Interfaces"); + write_config(sprintf(gettext('The invalid MAC address (ff:ff:ff:ff:ff:ff) on interface %1$s has been automatically replaced with %2$s'), $realif, $random_mac)); + file_notice("MAC Address altered", sprintf(gettext('The invalid MAC address (ff:ff:ff:ff:ff:ff) on interface %1$s has been automatically replaced with %2$s'), $realif, $random_mac), "Interfaces"); } /* media */ |