diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-12-27 10:34:21 -0800 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-12-27 10:34:21 -0800 |
commit | 60afd711d191f9a4a2424f45b1099e9fedb52d73 (patch) | |
tree | 831dfcd3427643a62406cd8ce0bc572635d799d8 /scripts | |
parent | 7fda504b6dcdabdffc3245b2f28c320a3a427921 (diff) | |
parent | e163a558e30b574703b3d083b98c02fe6124ec99 (diff) | |
download | vyatta-cfg-system-60afd711d191f9a4a2424f45b1099e9fedb52d73.tar.gz vyatta-cfg-system-60afd711d191f9a4a2424f45b1099e9fedb52d73.zip |
Merge branch 'oxnard' of git.vyatta.com:/git/vyatta-cfg-system into oxnard
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/system/vyatta_interface_rescan | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/system/vyatta_interface_rescan b/scripts/system/vyatta_interface_rescan index 5b72a480..eb45da60 100755 --- a/scripts/system/vyatta_interface_rescan +++ b/scripts/system/vyatta_interface_rescan @@ -115,6 +115,13 @@ sub interface_rescan { foreach my $ifname (sort @interfaces) { my $hwaddr = get_hwid("$VYATTAUDEV/$ifname"); + + # Ignore devices that disappear (or get renamed) + unless (-d "/sys/class/net/$ifname") { + syslog(LOG_INFO, "%s: does not exist", $ifname); + next; + } + unless (persistent_address($hwaddr)) { syslog(LOG_NOTICE, "%s: skipping address %s is not persistent", $ifname, $hwaddr); |