diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-11 18:41:52 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-11 18:41:52 -0800 |
commit | 7082f5c70f29502de722dcbfe06d4a13e2954795 (patch) | |
tree | bcba0fd0a0fce984ca3c64c274e68e5b327e7768 /scripts/vyatta_net_name | |
parent | d4b5bf85f32965a0260ea907456bdc842c97ba51 (diff) | |
download | vyatta-cfg-quagga-7082f5c70f29502de722dcbfe06d4a13e2954795.tar.gz vyatta-cfg-quagga-7082f5c70f29502de722dcbfe06d4a13e2954795.zip |
fix for bug 2547: don't require/output ':' after "hw-id".
Diffstat (limited to 'scripts/vyatta_net_name')
-rwxr-xr-x | scripts/vyatta_net_name | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/vyatta_net_name b/scripts/vyatta_net_name index 9820d00f..61792340 100755 --- a/scripts/vyatta_net_name +++ b/scripts/vyatta_net_name @@ -71,7 +71,7 @@ shopt -s extglob nullglob # ... # ethernet eth# { # ... -# hw-id: XX:XX:XX:XX:XX:XX +# hw-id XX:XX:XX:XX:XX:XX # ... # } # } @@ -86,9 +86,9 @@ declare -a cfg_net_hwid=( $( sed -ne ' # hold interface name h } - /^.*hw-id:/ { + /^.*hw-id:\?/ { # translate field name - s/.*hw-id: *// + s/.*hw-id:\? *// # tolower hex mac address y/ABCDEF/abcdef/ # exchange hold and pattern space |