From 1afa9e47c7d25d5fbc39f66d49b87bf81ff1ebaf Mon Sep 17 00:00:00 2001 From: MOHAMED Kallel Date: Fri, 14 Nov 2014 15:30:02 +0100 Subject: [PATCH] load cache: skip some defined prefixes in the wait cache Signed-off-by: MOHAMED Kallel --- scripts/freecwmp.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/freecwmp.sh b/scripts/freecwmp.sh index d0fef20..8f87bc4 100644 --- a/scripts/freecwmp.sh +++ b/scripts/freecwmp.sh @@ -191,6 +191,7 @@ if [ ${FLAGS_debug} -eq ${FLAGS_TRUE} ]; then fi prefix_list="" +prefix_list_skip_wait_cache="" . /lib/functions/network.sh for ffile in `ls /usr/share/freecwmp/functions/`; do @@ -290,6 +291,7 @@ handle_action() { ls_prefix=`ls $cache_path` for prefix in $prefix_list; do found=0 + [ "${prefix_list_skip_wait_cache/$prefix/}" != "$prefix_list_skip_wait_cache" ] && continue for ls_p in $ls_prefix; do if [ "$prefix" = "$ls_p" ]; then found=1