From 14fb822154015dc7944187361153b4fed205730e Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 3 Oct 2022 12:16:31 -0400 Subject: T4726: add completion help and validation for accel-ppp vendor option --- src/validators/accel-radius-dictionary | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 src/validators/accel-radius-dictionary (limited to 'src') 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 + -- cgit v1.2.3