view bin/macaddr.sh @ 746:eec5b7abff2b

add example sendmail script
author Jeff Hammel <k0scist@gmail.com>
date Mon, 29 Jun 2015 18:01:14 -0700
parents 08574641d801
children
line wrap: on
line source

#!/bin/bash

INTERFACE=eth0

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