12 lines
282 B
Plaintext
12 lines
282 B
Plaintext
|
#!/bin/bash
|
||
|
#remaster lib
|
||
|
[ -d "$LIBDR"] || export LIBDIR="/usr/lib/remaster/"
|
||
|
[ -d "$LIBDR"] || { echo "LIBDR 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]}
|
||
|
}
|