diff --git a/case-lib/lib.sh b/case-lib/lib.sh index 2db58f79..d472ab81 100644 --- a/case-lib/lib.sh +++ b/case-lib/lib.sh @@ -896,7 +896,9 @@ print_module_params() echo "----------------------------------------" echo "--------- Printing debugfs settings ----------" - sudo grep -H ^ /sys/kernel/debug/sof/fw_profile/* || true + # Need /bin/sh to expand '*' as root. + # Need "|| true" to support older kernels. + sudo /bin/sh -c 'grep -H ^ /sys/kernel/debug/sof/fw_profile/*' || true echo "----------------------------------------------" }