From 3d87e538ece0276cb2de8a7aecde9a76e9292ba8 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