From 7082f5c70f29502de722dcbfe06d4a13e2954795 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 11 Feb 2008 18:41:52 -0800 Subject: fix for bug 2547: don't require/output ':' after "hw-id". --- scripts/mod_bootfile_eth_hwid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/mod_bootfile_eth_hwid') 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 -- cgit v1.2.3