Mercurial > hg > config
view bin/macaddr.sh @ 688:ad8146c60c4d
merge
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 02 Jun 2014 11:21:46 -0700 |
parents | 08574641d801 |
children |
line wrap: on
line source
#!/bin/bash INTERFACE=eth0 ifconfig ${INTERFACE} | grep 'HWaddr' | sed 's/.*HWaddr \(.*\) /\1/'