view bin/macaddr.sh @ 628:08574641d801

STUB: bin/macaddr.sh
author Jeff Hammel <k0scist@gmail.com>
date Wed, 19 Feb 2014 16:03:17 -0800
parents
children
line wrap: on
line source

#!/bin/bash

INTERFACE=eth0

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