Revision bb5b7532
Added by Doktor Notor over 8 years ago
src/etc/inc/interfaces.inc | ||
---|---|---|
3298 | 3298 |
mwexec("/sbin/ifconfig " . escapeshellarg($realhwif) . |
3299 | 3299 |
" link " . escapeshellarg($random_mac)); |
3300 | 3300 |
$wancfg['spoofmac'] = $random_mac; |
3301 |
write_config(); |
|
3302 |
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");
|
|
3301 |
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));
|
|
3302 |
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");
|
|
3303 | 3303 |
} |
3304 | 3304 |
|
3305 | 3305 |
/* media */ |
Also available in: Unified diff
Add reason to write_config() call