diff --git a/bfcfg b/bfcfg index a93d6b6..8504715 100755 --- a/bfcfg +++ b/bfcfg @@ -3708,7 +3708,7 @@ bf4_cfg() dump_mode=0 # Parse the arguments. - options=$(getopt -n bfcfgl: -o dhvl -l dump,dump-level:,help,version -- "$@") + options=$(getopt -n bfcfg -o dhvl: -l dump,dump-level:,help,version -- "$@") eval set -- "$options" while [ "$1" != -- ]; do case $1 in diff --git a/bfup b/bfup index 74cf97d..29e3129 100755 --- a/bfup +++ b/bfup @@ -27,6 +27,14 @@ # of the authors and should not be interpreted as representing official policies, # either expressed or implied, of the FreeBSD Project. +bf_chip=$(bffamily --chip) + +if [ "$bf_chip" = "BlueField-4" ]; then + # Simply exit since most callers are scripts + # echo "${0##*/} is NOT supported for BlueField-4" >&2 + exit 1 +fi + /usr/bin/bfrshlog "Linux up" /usr/bin/bfrshlog "DPU is ready" @@ -41,4 +49,4 @@ echo 1 > "${os_up_path}" /usr/bin/bfcfg -i 2>/dev/null # Pass the DOCA version info to UEFI variable. -/usr/bin/bfcfg --docainfo 2>/dev/null \ No newline at end of file +/usr/bin/bfcfg --docainfo 2>/dev/null