Fix file system type detection on Solaris.

This commit is contained in:
Pawel Jakub Dawidek 2010-08-09 17:40:59 +00:00
parent cd9b233e0a
commit 57ab39b94a

View File

@ -13,7 +13,7 @@ FreeBSD|Darwin)
;;
Solaris|SunOS)
GREP=ggrep
pattern=`df -k . | tail -1 | awk '{printf("%s on %s \n", $1, $6)}'`
pattern=`df -Pk . | tail -1 | awk '{printf("%s on %s \n", $1, $6)}'`
fs=`mount -v | ${GREP} -E "^${pattern}" | awk '{print $5}' | \
tr -s '[:lower:]' '[:upper:]'`
;;