diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-04-26 16:46:18 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-10-07 16:46:55 -0400 |
| commit | 585967c5ed3fd3b5ae49c303cfada9f96b5b3c51 (patch) | |
| tree | e18cd28f5d588d276dcec15ac12bba1f2b5209c2 | |
| parent | 8fd32129befdb4218bf1b9cd1c1088e8dee3958b (diff) | |
| download | dotfiles-585967c5ed3fd3b5ae49c303cfada9f96b5b3c51.tar.gz dotfiles-585967c5ed3fd3b5ae49c303cfada9f96b5b3c51.tar.xz | |
Notes about generating a random macaddr on FreeBSD
| -rw-r--r-- | mkshrc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -212,6 +212,9 @@ set_retro() { export TERM="$(echo $TERM | sed -e's/-256color$//')" } randmacgen() { + # This seems to be needed on FreeBSD, I'll have to look into + # exactly what is causing this and what the differences are + LC_COLLATE=c tr -c -d '0123456789abcdef' < /dev/urandom \ | head -c 12 \ | sed 's!^M$!!;s!\-!!g;s!\.!!g;s!\(..\)!\1:!g;s!:$!!' |
