From cbd6c1f82ab4725ce9b68bb74f6eda9c78453b09 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Mon, 1 Mar 2021 10:35:49 +0100 Subject: [PATCH] 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 --- packages/mediacenter/kodi/scripts/pastekodi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/mediacenter/kodi/scripts/pastekodi b/packages/mediacenter/kodi/scripts/pastekodi index 1c183a6eaa..7b3910749f 100755 --- a/packages/mediacenter/kodi/scripts/pastekodi +++ b/packages/mediacenter/kodi/scripts/pastekodi @@ -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 <