Add fallback to getdisk
This commit is contained in:
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
Block a user