Mercurial > hg > config
view bin/macaddr.sh @ 680:ae7e75a8cdb0
mv
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 13 May 2014 12:58:48 -0700 |
parents | 08574641d801 |
children |
line wrap: on
line source
#!/bin/bash INTERFACE=eth0 ifconfig ${INTERFACE} | grep 'HWaddr' | sed 's/.*HWaddr \(.*\) /\1/'