diff 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 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