/lib/fs2ram/unmount-scripts/keep_file_structure is in fs2ram 0.3.12.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #! /bin/sh
. /lib/fs2ram/unmount-scripts/common.sh
dir="$1"
shift
options="$*"
# Decode the options given in parameters
ignore_file_regexp=""
ignore_folder_regexp=""
for opt in $options; do
case "$opt" in
ignore_file=*)
ignore_file_regexp=${opt#ignore_file=*}
;;
ignore_folder=*)
ignore_folder_regexp=${opt#ignore_folder=*}
;;
*)
;;
esac
done
generate_sh_header
generate_folder_structure "$dir" "$ignore_folder_regexp"
generate_file_structure "$dir" "$ignore_file_regexp"
|