view bin/macaddr.sh @ 692:80c47cc35f37

to method
author Jeff Hammel <k0scist@gmail.com>
date Mon, 02 Jun 2014 13:49:46 -0700
parents 08574641d801
children
line wrap: on
line source

#!/bin/bash

INTERFACE=eth0

ifconfig ${INTERFACE} | grep 'HWaddr' | sed 's/.*HWaddr \(.*\) /\1/'