aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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