Add -D to raddebug, too
authorAlan T. DeKok <aland@freeradius.org>
Mon, 26 Oct 2015 00:04:37 +0000 (20:04 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 26 Oct 2015 13:59:31 +0000 (09:59 -0400)
scripts/raddebug

index 1d322e6..91e7d61 100755 (executable)
 #
 
 usage() {
-    printf "Usage: %s: [-c condition] [-d directory] [-i client-ip-address] [-I client-ipv6-address] [-f socket_file] [-t timeout] [-u user]\n" $(basename $0) >&2
+    printf "Usage: %s: [-c condition] [-d directory] [-D dictdir]  [-i client-ip-address] [-I client-ipv6-address] [-f socket_file] [-t timeout] [-u user]\n" $(basename $0) >&2
     exit 2
 }
 
 extra=
 condition=1
 timeout=60
-while getopts 'd:c:i:I:f:t:u:' OPTION
+while getopts 'd:D:c:i:I:f:t:u:' OPTION
 do
   case $OPTION in
   c)   condition="$OPTARG"
        ;;
-  d)    [ "$extra" = "" ] || usage
-       extra="-d $OPTARG"
+  d)    extra="$extra -d $OPTARG"
+       ;;
+  D)    extra="$extra -D $OPTARG"
        ;;
   i)   condition="(Packet-Src-IP-Address == $OPTARG)"
        ;;
   I)   condition="(Packet-Src-IPv6-Address == $OPTARG)"
        ;;
-  f)   [ "$extra" = "" ] || usage
-       extra="-f $OPTARG"
+  f)   extra="$extra -f $OPTARG"
        ;;
   t)   timeout="$OPTARG"
        [ "$timeout" = "0" ] && timeout=1000000