annotate bin/macaddr.sh @ 913:107bf2430602

update with future work + links
author Jeff Hammel <k0scist@gmail.com>
date Mon, 27 May 2024 13:59:46 -0700
parents 08574641d801
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
628
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/bin/bash
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 INTERFACE=eth0
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
08574641d801 STUB: bin/macaddr.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 ifconfig ${INTERFACE} | grep 'HWaddr' | sed 's/.*HWaddr \(.*\) /\1/'