Mercurial > hg > config
view bin/macaddr.sh @ 897:ba2630ce851b
update default branch for git
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 01 Aug 2022 16:40:53 -0700 |
parents | 08574641d801 |
children |
line wrap: on
line source
#!/bin/bash INTERFACE=eth0 ifconfig ${INTERFACE} | grep 'HWaddr' | sed 's/.*HWaddr \(.*\) /\1/'