2022-07-04 21:36:33 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# $1 should be drive mountpoint, otherwise assumed /.
|
|
|
|
location=${1:-/}
|
|
|
|
[ -d "$location" ] || exit
|
2022-09-27 10:47:14 +02:00
|
|
|
printf "\033[11m\033[10m %s\n" "$(df -h "$location" | awk ' /[0-9]/ {print $3 "/" $2}')"
|