Commit 84bdc4a7 authored by ffs-Monitor's avatar ffs-Monitor

vality check for segment / port fixed

parent c380cc10
......@@ -23,8 +23,8 @@ fi
SEGINFO=${SEGINFO/Address 1: 2001:2:0:711::/}
SEGMENT=$(echo $SEGINFO |cut -d' ' -f1 | cut -d':' -f2)
let PORT=SEGMENT+10040
if [ -z "$PORT" ]; then
logger -t $ME "No port"
if [ $PORT -le 10040 ]; then
logger -t $ME "Invalid Segment"
exit 1
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment