summaryrefslogtreecommitdiff
path: root/src/validators/accel-radius-dictionary
blob: 05287e770eb0d181d1e3d0aac24965050268e28a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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