summaryrefslogtreecommitdiffstats
path: root/modules.d/95fcoe/parse-fcoe.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:33:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:33:11 +0000
commitae3ecffbd2e40760fef5dc09db30ea8a81abec70 (patch)
treef3b77bfda1bae06d3326ef27c3cb61539e7f93cc /modules.d/95fcoe/parse-fcoe.sh
parentAdding debian version 102-3. (diff)
downloaddracut-ae3ecffbd2e40760fef5dc09db30ea8a81abec70.tar.xz
dracut-ae3ecffbd2e40760fef5dc09db30ea8a81abec70.zip
Merging upstream version 103.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'modules.d/95fcoe/parse-fcoe.sh')
-rwxr-xr-xmodules.d/95fcoe/parse-fcoe.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules.d/95fcoe/parse-fcoe.sh b/modules.d/95fcoe/parse-fcoe.sh
index a6f284b..dc4ca32 100755
--- a/modules.d/95fcoe/parse-fcoe.sh
+++ b/modules.d/95fcoe/parse-fcoe.sh
@@ -72,7 +72,7 @@ parse_fcoe_opts() {
;;
esac
- if [ "$fcoe_dcb" != "nodcb" -a "$fcoe_dcb" != "dcb" ]; then
+ if [ "$fcoe_dcb" != "nodcb" ] && [ "$fcoe_dcb" != "dcb" ]; then
warn "Invalid FCoE DCB option: $fcoe_dcb"
fi
@@ -81,7 +81,7 @@ parse_fcoe_opts() {
return 0
fi
- if [ -z "$fcoe_interface" -a -z "$fcoe_mac" ]; then
+ if [ -z "$fcoe_interface" ] && [ -z "$fcoe_mac" ]; then
warn "fcoe: Neither interface nor MAC specified for fcoe=$fcoe"
return 1
fi