diff --git a/packages/bsp/common/usr/bin/armbianmonitor b/packages/bsp/common/usr/bin/armbianmonitor index 8caa101382..916b626c37 100755 --- a/packages/bsp/common/usr/bin/armbianmonitor +++ b/packages/bsp/common/usr/bin/armbianmonitor @@ -1039,13 +1039,10 @@ ShowDeviceWarning() { } # ShowDeviceWarning GetDevice() { - TestPath=$(findmnt "$1" | awk -F" " '/\/dev\// {print $2"\t"$3}') - if [[ -z ${TestPath} && -n "${1%/*}" ]]; then - GetDevice "${1%/*}" - elif [[ -z ${TestPath} && -z "${1%/*}" ]]; then - findmnt / | awk -F" " '/\/dev\// {print $2"\t"$3}' - else + if TestPath=$(findmnt --noheadings --output SOURCE,FSTYPE --target "$1" --uniq); then echo "${TestPath}" + else + echo "Bud Path: $1" >&2; exit 1 fi } # GetDevice