diff options
author | George Hung <george.hung@quantatw.com> | 2021-07-01 09:20:34 +0300 |
---|---|---|
committer | George Hung <george.hung@quantatw.com> | 2021-07-02 02:49:31 +0300 |
commit | a487d9d878b90af963a25b8292965ce3d888b432 (patch) | |
tree | 2fc0e526052f8640c176ae03da2e2c84877c02cb /meta-quanta/meta-common/recipes-quanta | |
parent | 2ca1e9b8f0bb829647ee21a0daf7570dab840dfb (diff) | |
download | openbmc-a487d9d878b90af963a25b8292965ce3d888b432.tar.xz |
meta-quanta: common: fix "ignored null byte in input" warning
get rid of "ignored null byte in input" warning for
the usb-network.sh
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: I2a18f568b362601fa1c41ec39a8c1cecf09f8862
Diffstat (limited to 'meta-quanta/meta-common/recipes-quanta')
-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 6840f9ffc4..ebd6f027ec 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")" |