Make fire-ip accept v4 or v6 IPs

This commit is contained in:
Neale Pickett 2012-06-09 15:55:02 -06:00
parent d7a225dc51
commit 794356972d
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,9 @@ action=$1; shift
read n < ip.txt 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 # IPv4
IP="10.0.0.$n/16" IP="10.0.0.$n/16"
else else