summaryrefslogtreecommitdiff
path: root/src/completion
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-26 17:12:29 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-28 19:42:50 +0100
commit1efd20ab21e75e421487d563fc794a7f97361a3e (patch)
tree189b1860ffe77a2c2349415fc508cc03ab73f1c2 /src/completion
parentb9a2312f02e40b16d5b85454eadd84dc3cb7bea8 (diff)
downloadvyos-1x-1efd20ab21e75e421487d563fc794a7f97361a3e.tar.gz
vyos-1x-1efd20ab21e75e421487d563fc794a7f97361a3e.zip
webproxy: T563: op-mode: initial command support
Diffstat (limited to 'src/completion')
-rwxr-xr-xsrc/completion/list_webproxy_category.sh5
1 files changed, 5 insertions, 0 deletions
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