From bb5b7532733d7e60fbc2a2adfc51312c9d1ab4ce Mon Sep 17 00:00:00 2001 From: doktornotor Date: Sun, 5 Mar 2017 22:37:24 +0100 Subject: Add reason to write_config() call --- src/etc/inc/interfaces.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/etc/inc') 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 */ -- cgit v1.1