remaster/src/func/filesystem_get_type

12 lines
285 B
Plaintext
Raw Normal View History

#!/bin/bash
#remaster lib
2018-05-06 17:26:21 +00:00
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
#filesystem_get_type [dir]
#(String)-> ext4, ext2, btfs, fuse, ...
function filesystem_get_type() {
fs_aTemp=(`df -T "$1"`)
echo ${fs_aTemp[9]}
}