diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-10-07 07:34:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 07:34:43 +0200 |
commit | 4608001b073f10310b8753c4d7d850af3ec001fb (patch) | |
tree | 6b1f1e912830a2b334f82431e92d0360c23533ca /src/validators | |
parent | 067cc12d0e6e52044df48f6f612cb4db1d4ad80c (diff) | |
parent | 23f7ef7e9e79b1f159c3e874c2237b5b804d9380 (diff) | |
download | vyos-1x-4608001b073f10310b8753c4d7d850af3ec001fb.tar.gz vyos-1x-4608001b073f10310b8753c4d7d850af3ec001fb.zip |
Merge pull request #1569 from dmbaturin/radius-rate-limit-comp
T4726: add completion help and validation for accel-ppp vendor option
Diffstat (limited to 'src/validators')
-rwxr-xr-x | src/validators/accel-radius-dictionary | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/validators/accel-radius-dictionary b/src/validators/accel-radius-dictionary new file mode 100755 index 000000000..05287e770 --- /dev/null +++ b/src/validators/accel-radius-dictionary @@ -0,0 +1,13 @@ +#!/bin/sh + +DICT_PATH=/usr/share/accel-ppp/radius +NAME=$1 + +if [ -n "$NAME" -a -e $DICT_PATH/dictionary.$NAME ]; then + exit 0 +else + echo "$NAME is not a valid RADIUS dictionary name" + echo "Please make sure that $DICT_PATH/dictionary.$NAME file exists" + exit 1 +fi + |