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/mod_bootfile_eth_hwid | |
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/mod_bootfile_eth_hwid')
-rwxr-xr-x | scripts/mod_bootfile_eth_hwid | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod_bootfile_eth_hwid b/scripts/mod_bootfile_eth_hwid index 51b2c022..feab64f1 100755 --- a/scripts/mod_bootfile_eth_hwid +++ b/scripts/mod_bootfile_eth_hwid @@ -25,8 +25,8 @@ sed -i '/^interfaces {$/,/^}$/ { /^ ethernet '"$eth"' {$/ { :join /\n }$/ { - /hw-id: / s/\(hw-id:\) [0-9a-fA-F:]\+/\1 '"$hwid"'/ - /hw-id: /! s/}$/ hw-id: '"$hwid"'\n }/ + /hw-id:\? / s/\(hw-id\):\? [0-9a-fA-F:]\+/\1 '"$hwid"'/ + /hw-id:\? /! s/}$/ hw-id '"$hwid"'\n }/ b } N |