changeset 628:08574641d801

STUB: bin/macaddr.sh
author Jeff Hammel <k0scist@gmail.com>
date Wed, 19 Feb 2014 16:03:17 -0800
parents 870af8d51552
children b0bfa6a0058f
files bin/macaddr.sh
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/macaddr.sh	Wed Feb 19 16:03:17 2014 -0800
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+INTERFACE=eth0
+
+ifconfig ${INTERFACE} | grep 'HWaddr' | sed 's/.*HWaddr \(.*\) /\1/'
\ No newline at end of file