diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-12-28 20:07:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 20:07:52 +0100 |
commit | 829e76f7392e348ccc01c56e9680efb4eba80440 (patch) | |
tree | 282dac56ecfccf381fa92ad9027df6779d16ae2f /src/completion | |
parent | c1fcbba9cb45f981e5bd8decf3ebbc1e17d9fbd9 (diff) | |
parent | eeb78e842423319169b036d16601e73227dbffdd (diff) | |
download | vyos-1x-829e76f7392e348ccc01c56e9680efb4eba80440.tar.gz vyos-1x-829e76f7392e348ccc01c56e9680efb4eba80440.zip |
Merge pull request #643 from c-po/t563-webproxy
webproxy: T563: migrate from old Perl code to XML and get_config_dict()
Diffstat (limited to 'src/completion')
-rwxr-xr-x | src/completion/list_webproxy_category.sh | 5 |
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..a5ad2398a --- /dev/null +++ b/src/completion/list_webproxy_category.sh @@ -0,0 +1,5 @@ +#!/bin/sh +DB_DIR="/opt/vyatta/etc/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 |