interfaces: align file names #5367

This commit is contained in:
Franco Fichtner 2021-11-29 07:36:37 +01:00
parent bde62fc806
commit 08df2b0255
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ foreach (array_keys($restartifs) as $ifname) {
*/
ifgroup_setup();
$cacheip_file = "/tmp/{$interface}_oldip";
$cacheip_file = "/tmp/{$interface_real}_oldip";
$cacheip = @file_get_contents($cacheip_file);
if ($ip != $cacheip || !is_ipaddr($config['interfaces'][$interface]['ipaddr'])) {

View File

@ -109,7 +109,7 @@ if (count(link_interface_to_track6($interface, true))) {
system_resolvconf_generate();
system_hosts_generate();
$cacheip_file = "/tmp/{$interface}_oldipv6";
$cacheip_file = "/tmp/{$interface_real}_oldipv6";
$cacheip = @file_get_contents($cacheip_file);
if ($ip != $cacheip || !is_ipaddr($config['interfaces'][$interface]['ipaddrv6'])) {