Commit 06017cdc authored by Peter Kovary's avatar Peter Kovary
Browse files

[Fix] New year, new fix (& version bump)

parent f60fc21a
......@@ -8,8 +8,8 @@ then
fi
if [ ! -f "$hostsFile" ]; then
origin=(`ifconfig -a eno1 | grep "inet addr" | sed -e 's/:/ /g' | awk '{print $3}' | sed -e 's/\./ /g'`)
snmask=(`ifconfig -a eno1 | grep "inet addr" | sed -e 's/:/ /g' | awk '{print $7}' | sed -e 's/\./ /g'`)
origin=(`ifconfig -a eno1 | grep "inet " | awk '{print $2}' | sed -e 's/\./ /g'`)
snmask=(`ifconfig -a eno1 | grep "inet " | awk '{print $4}' | sed -e 's/\./ /g'`)
sta=(0 0 0 0)
fin=(0 0 0 0)
for x in $(seq 0 3)
......@@ -21,7 +21,7 @@ if [ ! -f "$hostsFile" ]; then
hostlist=()
for ip in ${iplist[*]}
do
hostname=$(host $ip | awk '/pointer/ { print $5 }' | sed -e 's/\./ /g' | awk '{print $1}')
hostname=$(host $ip | head -n1 | awk '/pointer/ { print $5 }' | sed -e 's/\./ /g' | awk '{print $1}')
if [[ "$hostname" =~ ^[a-z]+[0-9]{2}$ ]]
then
hostlist+=("$hostname")
......
......@@ -16,7 +16,7 @@ hostlist=(`./gethosts`)
outputFile="whosinlabs_tmp-$(date +%Y-%m-%dT%H:%M:%S.%N)"
keep=false
version='1.8'
version='1.8.1'
sortBy="name"
......
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