summaryrefslogtreecommitdiff
path: root/scripts/mod_bootfile_eth_hwid
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-11 18:41:52 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-11 18:41:52 -0800
commit7082f5c70f29502de722dcbfe06d4a13e2954795 (patch)
treebcba0fd0a0fce984ca3c64c274e68e5b327e7768 /scripts/mod_bootfile_eth_hwid
parentd4b5bf85f32965a0260ea907456bdc842c97ba51 (diff)
downloadvyatta-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-xscripts/mod_bootfile_eth_hwid4
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