diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2021-07-30 00:16:52 +0300 |
---|---|---|
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | 2021-07-30 00:16:52 +0300 |
commit | bb6a14e2f317abf60677c6ad8de9c33d5760bf36 (patch) | |
tree | 00457d3677e86437cec25fd7dab6c4513a53b1a4 /meta-quanta/meta-common/recipes-quanta/network | |
parent | defdca82c107f46e980c84bffb1b2c1263522fa0 (diff) | |
parent | cf6fd27dbd8e2d1b507f8c3752b85801b2c6ef57 (diff) | |
download | openbmc-bb6a14e2f317abf60677c6ad8de9c33d5760bf36.tar.xz |
Merge tag '0.63' of ssh://git-amr-1.devtools.intel.com:29418/openbmc-openbmc into update
Diffstat (limited to 'meta-quanta/meta-common/recipes-quanta/network')
-rw-r--r-- | meta-quanta/meta-common/recipes-quanta/network/usb-network/usb-network.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-quanta/meta-common/recipes-quanta/network/usb-network/usb-network.sh b/meta-quanta/meta-common/recipes-quanta/network/usb-network/usb-network.sh index 6840f9ffc..ebd6f027e 100644 --- a/meta-quanta/meta-common/recipes-quanta/network/usb-network/usb-network.sh +++ b/meta-quanta/meta-common/recipes-quanta/network/usb-network/usb-network.sh @@ -12,7 +12,7 @@ check_usb_local_administered() { # Set the locally administered bit (the second least-significant # bit of the first octet) of the MAC address set_local_administered_bit() { - mac="$(cat $1)" + mac="$(tr -d '\0' < $1)" first_byte="${mac:0:2}" first_byte="$((0x$first_byte|2))" first_byte="$(printf "%02x\n" "$first_byte")" |