summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/system/vyatta_interface_rescan10
1 files changed, 3 insertions, 7 deletions
diff --git a/scripts/system/vyatta_interface_rescan b/scripts/system/vyatta_interface_rescan
index 2803099b..bdc8fd67 100755
--- a/scripts/system/vyatta_interface_rescan
+++ b/scripts/system/vyatta_interface_rescan
@@ -96,20 +96,16 @@ sub interface_rescan {
close $dir;
foreach my $ifname (sort @interfaces) {
- my $ifpath = interface_type($ifname) . " $ifname";
- if ($xcp->get_node(['interfaces', $ifpath])) {
- syslog(LOG_INFO, "%s: is already in config file", $ifname);
- next;
- }
-
my $hwaddr = get_hwid("$VYATTAUDEV/$ifname");
unless (persistent_address($hwaddr)) {
- syslog(LOG_INFO, "%s: skipping address %s is not persistent",
+ syslog(LOG_NOTICE, "%s: skipping address %s is not persistent",
$ifname, $hwaddr);
next;
}
# Add new entry to config
+ my $ifpath = interface_type($ifname) . " $ifname";
+
syslog(LOG_INFO, "add config for %s hw-id %s", $ifname, $hwaddr);
$xcp->create_node(['interfaces',$ifpath,"hw-id $hwaddr"]);
}