From bac527fc2eed2e6aa99849ee0b295ee81646c4c9 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Wed, 21 Aug 2019 16:11:13 +0200 Subject: [PATCH] components/9990-networking.sh: Add shellcheck override To make `components/9990-networking.sh` shellcheck clean, add an override for specifying `HWADDR`, which is used by `do_iscsi` from `9990-mount-iscsi.sh`. Run shellcheck: ``` shellcheck -e SC1090 components/9990-networking.sh ``` Signed-off-by: Benjamin Drung --- components/9990-networking.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/9990-networking.sh b/components/9990-networking.sh index 9cc3674..88bad20 100755 --- a/components/9990-networking.sh +++ b/components/9990-networking.sh @@ -128,6 +128,8 @@ do_netsetup () if [ -n "${interface}" ] then + # HWADDR used by do_iscsi from 9990-mount-iscsi.sh + # shellcheck disable=SC2034 HWADDR="$(cat "/sys/class/net/${interface}/address")" fi -- 2.1.4