summaryrefslogtreecommitdiffstats
path: root/src/initramfs/tpm/bin/showmac.sh
blob: ef2aaf21e856a161c6322793404bfc3ee39e3b91 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
#

DEV="$1"
[ -z "$DEV" ] && DEV="eth0"

ip link show $DEV | \
	sed -n 's,.*\(..:..:..:..:..:..\) br.*,\1,p' | \
	sed 's,:,-,g'