summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-04-01 11:28:32 -0500
committerJohn Estabrook <jestabro@vyos.io>2021-04-01 11:32:36 -0500
commit6019ab063d8f26172ffc3993fa25a57fcd5782aa (patch)
tree741dda98789c63f52d0adf51d0a4f9968bc7f43c /scripts
parent6e81c80137d39333dc44413da47885b404c88b5c (diff)
downloadvyatta-cfg-system-6019ab063d8f26172ffc3993fa25a57fcd5782aa.tar.gz
vyatta-cfg-system-6019ab063d8f26172ffc3993fa25a57fcd5782aa.zip
migration: T2838: fix parsing of quoted config value for hw-id
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta_net_name2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta_net_name b/scripts/vyatta_net_name
index 825bf86f..d61ac6a3 100755
--- a/scripts/vyatta_net_name
+++ b/scripts/vyatta_net_name
@@ -55,7 +55,7 @@ sub get_hwid_from_children {
my $children = shift;
foreach my $attr (@$children) {
- next unless ($attr->{'name'} =~ /^hw-id ([0-9a-f:]+)/);
+ next unless (($attr->{'name'} =~ /^hw-id ([0-9a-f:]+)/) || ($attr->{'name'} =~ /^hw-id "([0-9a-f:]+)"/));
return $1;
}