annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
628
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/bin/bash
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 INTERFACE=eth0
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 ifconfig ${INTERFACE} | grep 'HWaddr' | sed 's/.*HWaddr \(.*\) /\1/'