Commit ca8f0e6e authored by System Administrator's avatar System Administrator

router/a_no_egw.sh: remove obsolete script

parent 0817005d
#!/bin/sh
SETNAME=rkz
arg=$1
get_ipv4_list()
{
echo "$1" | grep -q "[a-z]" || return 0
dig "$1" A | grep -v "^;" | grep "IN[[:space:]]*A[[:space:]]" | sed -e "s|.*[[:space:]]||"
}
for ip in $(get_ipv4_list $arg); do
echo "add $ip"
ipset del $SETNAME $ip
echo "$ip" >> a_no_egw.list
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment