aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2025-09-16 01:57:26 +0000
committerLeonard Kugis <leonard@kug.is>2025-09-16 01:57:26 +0000
commitebaccfd654a4c5b1fd995efc891b5e8d9433ef4c (patch)
treeb6c948ee0f64e97394a426e18d34fa2084a7af98
parent201307577e4919bde5aa84f99d22e46b32f1e1dd (diff)
downloadmulti-mount-master.tar.gz
bugfixesHEADmaster
Using find instead of CONF_FILESPEC variable, because some sh binaries do not support globbing.
-rw-r--r--service.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/service.sh b/service.sh
index 4e3e5a6..4da6220 100644
--- a/service.sh
+++ b/service.sh
@@ -11,7 +11,6 @@ BOOTWAIT_MAX_COUNT=20
BOOTWAIT_COUNT_INTERVAL=15s
CONF_DIR="/sdcard/.multi-mount"
-CONF_FILESPEC="${CONF_DIR}/*.conf"
# wait for system boot to complete
bootwait_count=0
@@ -31,7 +30,7 @@ echo "=== $(date) ===" >> "${LOG_FILE}" 2>&1
# process config files in parallel
config_file_count=0
-for f in ${CONF_FILESPEC}; do
+for f in $(find "$CONF_DIR" -type f -name '*.conf'); do
config_file_count=$((config_file_count+1))
"${MODDIR}/mount-from-config.sh" "${f}" &
done