Make fire-ip accept v4 or v6 IPs

This commit is contained in:
Neale Pickett 2012-06-09 15:55:02 -06:00
parent 38886dbdaf
commit 49b360b71f
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,9 @@ action=$1; shift
read n < ip.txt
if grep -q ipv4 /proc/cmdline; then
if grep -q '/' ip.txt; then
IP=$n
elif grep -q ipv4 /proc/cmdline; then
# IPv4
IP="10.0.0.$n/16"
else