summaryrefslogtreecommitdiff
path: root/scripts/mod_bootfile_eth_hwid
diff options
context:
space:
mode:
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