From 1efd20ab21e75e421487d563fc794a7f97361a3e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 26 Dec 2020 17:12:29 +0100 Subject: webproxy: T563: op-mode: initial command support --- src/completion/list_webproxy_category.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 src/completion/list_webproxy_category.sh (limited to 'src/completion') diff --git a/src/completion/list_webproxy_category.sh b/src/completion/list_webproxy_category.sh new file mode 100755 index 000000000..19f26bf85 --- /dev/null +++ b/src/completion/list_webproxy_category.sh @@ -0,0 +1,5 @@ +#!/bin/sh +DB_DIR="/config/url-filtering/squidguard/db/" +if [ -d ${DB_DIR} ]; then + ls -ald ${DB_DIR}/* | grep -E '^(d|l)' | awk '{print $9}' | sed s#${DB_DIR}/## +fi -- cgit v1.2.3