diff options
author | Sebastian Schmelzer | 2010-09-02 17:50:49 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2010-09-02 17:50:49 +0200 |
commit | 416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5 (patch) | |
tree | 4715f7d742fec50931017f38fe6ff0a89d4ceccc /src/initramfs/tpm/bin/showmac.sh | |
parent | Fix for the problem reported on the list (sed filter forgotten for the (diff) | |
download | core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.tar.gz core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.tar.xz core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.zip |
change dir structure
Diffstat (limited to 'src/initramfs/tpm/bin/showmac.sh')
-rwxr-xr-x | src/initramfs/tpm/bin/showmac.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/initramfs/tpm/bin/showmac.sh b/src/initramfs/tpm/bin/showmac.sh new file mode 100755 index 00000000..ef2aaf21 --- /dev/null +++ b/src/initramfs/tpm/bin/showmac.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# + +DEV="$1" +[ -z "$DEV" ] && DEV="eth0" + +ip link show $DEV | \ + sed -n 's,.*\(..:..:..:..:..:..\) br.*,\1,p' | \ + sed 's,:,-,g' |