view bin/macaddr.sh @ 689:6f48a3e5ab41

STUB: python/jsonex.py
author Jeff Hammel <k0scist@gmail.com>
date Mon, 02 Jun 2014 11:25:31 -0700
parents 08574641d801
children
line wrap: on
line source

#!/bin/bash

INTERFACE=eth0

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