From: Alan T. DeKok Date: Mon, 26 Oct 2015 00:04:37 +0000 (-0400) Subject: Add -D to raddebug, too X-Git-Tag: release_3_0_11~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82e7f28cf15bf60d9ec319211a59dd23807d6554;p=thirdparty%2Ffreeradius-server.git Add -D to raddebug, too --- diff --git a/scripts/raddebug b/scripts/raddebug index 1d322e624f3..91e7d610ac0 100755 --- a/scripts/raddebug +++ b/scripts/raddebug @@ -29,27 +29,27 @@ # 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