Commit d288c947 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

Resolve hostnames in init script

parent 26fb59e9
#! /bin/bash
ping -c 1 $ip
mac=`arp -n $ip | grep ether | cut -b34-52`
ip=`ping -n -c 1 $host | grep "bytes from" | cut -d" " -f4 | cut -d: -f1`
mac=`/usr/sbin/arp -n $ip | grep ether | cut -b34-52`
echo "Device is $ip at $mac"
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