annotate bin/macaddr.sh @ 871:1b6f0650dabb

add script to generate passwords
author Jeff Hammel <k0scist@gmail.com>
date Tue, 07 May 2019 10:34:38 -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/'