diff options
author | Leonard Kugis <leonard@kug.is> | 2025-09-16 01:57:26 +0000 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2025-09-16 01:57:26 +0000 |
commit | ebaccfd654a4c5b1fd995efc891b5e8d9433ef4c (patch) | |
tree | b6c948ee0f64e97394a426e18d34fa2084a7af98 /service.sh | |
parent | 201307577e4919bde5aa84f99d22e46b32f1e1dd (diff) | |
download | multi-mount-ebaccfd654a4c5b1fd995efc891b5e8d9433ef4c.tar.gz |
Using find instead of CONF_FILESPEC variable, because some sh
binaries do not support globbing.
Diffstat (limited to 'service.sh')
-rw-r--r-- | service.sh | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |