disk: change Haiku's df detection

'blocks' keyword is also present in busybox' df.
Busybox' df also has -P and -h flags, so it can be detected as normal df.
'Tracker' keyword seems to be exclusive to Haiku's df.
This commit is contained in:
Dawid Dziurla 2017-11-22 22:08:11 +01:00
parent 4fd2287582
commit a1e6843884
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B
1 changed files with 1 additions and 1 deletions

View File

@ -2032,7 +2032,7 @@ get_disk() {
# Get "df" version. # Get "df" version.
df_version="$(df --version 2>&1)" df_version="$(df --version 2>&1)"
case "$df_version" in case "$df_version" in
*"blocks"*) # Haiku *"Tracker"*) # Haiku
err "Your version of df cannot be used due to the non-standard flags" err "Your version of df cannot be used due to the non-standard flags"
return return
;; ;;