view bin/macaddr.sh @ 728:6ba565f99696

cache credentials for a session
author Jeff Hammel <k0scist@gmail.com>
date Fri, 05 Dec 2014 16:50:04 -0800
parents 08574641d801
children
line wrap: on
line source

#!/bin/bash

INTERFACE=eth0

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