Add fallback to getdisk
This commit is contained in:
parent
7c0863db3d
commit
07b2c83f9a
3
fetch
3
fetch
|
@ -1011,7 +1011,8 @@ getdisk () {
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux") df_flags="-h --total" ;;
|
"Linux") df_flags="-h --total" ;;
|
||||||
"Mac OS X") df_flags="-H /" ;;
|
"Mac OS X") df_flags="-H /" ;;
|
||||||
*"BSD") df_flags="-h -c" ;;
|
"FreeBSD") df_flags="-h -c" ;;
|
||||||
|
*) disk="Unknown"; return ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Get the disk info
|
# Get the disk info
|
||||||
|
|
Reference in New Issue