view bin/macaddr.sh @ 819:2d32115dc56c

security...am i right?
author Jeff Hammel <k0scist@gmail.com>
date Wed, 11 Jan 2017 09:40:16 -0800
parents 08574641d801
children
line wrap: on
line source

#!/bin/bash

INTERFACE=eth0

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