Mercurial > hg > config
view bin/macaddr.sh @ 683:ce95c61cb435
add viewer for graphviz; silly, but effective
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 17 May 2014 00:15:45 -0700 |
parents | 08574641d801 |
children |
line wrap: on
line source
#!/bin/bash INTERFACE=eth0 ifconfig ${INTERFACE} | grep 'HWaddr' | sed 's/.*HWaddr \(.*\) /\1/'