diff --git a/linux_snapshot/filesystem_snapshot_common b/linux_snapshot/filesystem_snapshot_common index 2176648a..838f265a 100644 --- a/linux_snapshot/filesystem_snapshot_common +++ b/linux_snapshot/filesystem_snapshot_common @@ -1,6 +1,6 @@ #!/bin/sh -function exit_exclude_snapshot_mountpoints { +exit_exclude_snapshot_mountpoints() { CFG_FILE=/etc/urbackup/exclude_snapshot_mountpoints if ! test -e "$CFG_FILE" then @@ -17,6 +17,7 @@ function exit_exclude_snapshot_mountpoints { done <$CFG_FILE } -function set_filesystem_type { +set_filesystem_type() { TYPE=`df -T -P | egrep " ${1}\$" | head -n 1 | tr -s " " | cut -d" " -f2` + export TYPE }