aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-04-26 16:46:18 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-10-07 16:46:55 -0400
commit585967c5ed3fd3b5ae49c303cfada9f96b5b3c51 (patch)
treee18cd28f5d588d276dcec15ac12bba1f2b5209c2
parent8fd32129befdb4218bf1b9cd1c1088e8dee3958b (diff)
downloaddotfiles-585967c5ed3fd3b5ae49c303cfada9f96b5b3c51.tar.gz
dotfiles-585967c5ed3fd3b5ae49c303cfada9f96b5b3c51.tar.xz
Notes about generating a random macaddr on FreeBSD
-rw-r--r--mkshrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkshrc b/mkshrc
index 02bfedb..2aac943 100644
--- a/mkshrc
+++ b/mkshrc
@@ -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!:$!!'