From 81b27d8ba6ff7b9a1a7a01b0a920691377219458 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 9 Jun 2012 15:55:02 -0600 Subject: [PATCH] Make fire-ip accept v4 or v6 IPs --- packages/00admin/bin/fire-ip | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/00admin/bin/fire-ip b/packages/00admin/bin/fire-ip index d1ed2ca..5312539 100755 --- a/packages/00admin/bin/fire-ip +++ b/packages/00admin/bin/fire-ip @@ -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