diff options
-rwxr-xr-x | scripts/vyatta_net_name | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/vyatta_net_name b/scripts/vyatta_net_name index ade77623..3df23adf 100755 --- a/scripts/vyatta_net_name +++ b/scripts/vyatta_net_name @@ -85,6 +85,9 @@ sub biosdevname { # biosdevname works only on ethernet devices return $ifname unless ($ifname =~ /^eth/); + # Don't use biosdevname in Xen + return $ifname if ( -d "/proc/xen" ); + # Let the interface name changes ordered by previous invocations of this # script complete before we call biosdevname. If we don't, biosdevame # may generate incorrect name. |