pastekodi: list .config, system.d and udev.rules.d files

/storage/.config/system.d is listed recursively so we also
see contents of .wants and drop-ins etc directories

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2021-03-01 10:35:49 +01:00
parent 0cab4ec777
commit cbd6c1f82a

View File

@ -14,6 +14,18 @@ cat_file() {
fi
}
ls_dir() {
if [ -d "${1}" ]; then
ls -lA "${1}" | cat_data "${1}"
fi
}
ls_dir_recursive() {
if [ -d "${1}" ]; then
ls -lAR "${1}" | cat_data "${1}"
fi
}
usage() {
[ -n "${1}" ] && echo "Unknown argument: ${1}"
cat <<EOF
@ -93,6 +105,10 @@ fi
cat_file "${KODI_ROOT}/.smb/user.conf"
cat_file "/run/samba/smb.conf"
ls_dir /storage/.config
ls_dir_recursive /storage/.config/system.d
ls_dir /storage/.config/udev.rules.d
pem_sys="$(sha256sum /etc/ssl/cacert.pem.system | cut -d' ' -f1)"
pem_run="$(sha256sum /run/libreelec/cacert.pem | cut -d' ' -f1)"
if [ "${pem_sys}" = "${pem_run}" ]; then