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

View file

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