Add fallback to getdisk
This commit is contained in:
parent
7c0863db3d
commit
07b2c83f9a
1 changed files with 2 additions and 1 deletions
3
fetch
3
fetch
|
@ -1011,7 +1011,8 @@ getdisk () {
|
|||
case "$os" in
|
||||
"Linux") df_flags="-h --total" ;;
|
||||
"Mac OS X") df_flags="-H /" ;;
|
||||
*"BSD") df_flags="-h -c" ;;
|
||||
"FreeBSD") df_flags="-h -c" ;;
|
||||
*) disk="Unknown"; return ;;
|
||||
esac
|
||||
|
||||
# Get the disk info
|
||||
|
|
Loading…
Add table
Reference in a new issue