]> Sergey Matveev's repositories - dotfiles.git/commitdiff
gen-ula
authorSergey Matveev <stargrave@stargrave.org>
Sat, 2 Sep 2023 08:51:38 +0000 (11:51 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 2 Sep 2023 08:51:38 +0000 (11:51 +0300)
bin/bin/gen-ula [new file with mode: 0755]

diff --git a/bin/bin/gen-ula b/bin/bin/gen-ula
new file mode 100755 (executable)
index 0000000..0fbda56
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+one=`dd if=/dev/random bs=1 count=1 2>/dev/null | xxd -p`
+two=`dd if=/dev/random bs=1 count=2 2>/dev/null | xxd -p`
+thr=`dd if=/dev/random bs=1 count=2 2>/dev/null | xxd -p`
+sipcalc fd${one}:${two}:${thr}::/48