mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 23:17:50 +00:00
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:
parent
0cab4ec777
commit
cbd6c1f82a
@ -14,6 +14,18 @@ cat_file() {
|
|||||||
fi
|
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() {
|
usage() {
|
||||||
[ -n "${1}" ] && echo "Unknown argument: ${1}"
|
[ -n "${1}" ] && echo "Unknown argument: ${1}"
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
@ -93,6 +105,10 @@ fi
|
|||||||
cat_file "${KODI_ROOT}/.smb/user.conf"
|
cat_file "${KODI_ROOT}/.smb/user.conf"
|
||||||
cat_file "/run/samba/smb.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_sys="$(sha256sum /etc/ssl/cacert.pem.system | cut -d' ' -f1)"
|
||||||
pem_run="$(sha256sum /run/libreelec/cacert.pem | cut -d' ' -f1)"
|
pem_run="$(sha256sum /run/libreelec/cacert.pem | cut -d' ' -f1)"
|
||||||
if [ "${pem_sys}" = "${pem_run}" ]; then
|
if [ "${pem_sys}" = "${pem_run}" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user