blob: 7cea853368f955220dea0726ca6ae4236ad8c89f (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
echo -n " "
df=$(df -h -T | grep '/$')
if echo "$df" | grep zfs >/dev/null 2>&1; then
zpool list $(echo $df | sed 's/\/.*//') | tail -n1 | awk '{print $3"/"$2}'
else
echo "$df" | awk '{print $4"/"$3}'
fi
|