diff --git a/packages/bsp/common/usr/bin/armbianmonitor b/packages/bsp/common/usr/bin/armbianmonitor index 0377707ea4..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 --noheadings --output SOURCE,FSTYPE "$1" --uniq) - if [[ -z ${TestPath} ]]; then - [[ -n "${1%/*}" ]] \ - && GetDevice "${1%/*}" \ - || GetDevice "/" - else + if TestPath=$(findmnt --noheadings --output SOURCE,FSTYPE --target "$1" --uniq); then echo "${TestPath}" + else + echo "Bud Path: $1" >&2; exit 1 fi } # GetDevice