mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user