initial commit

This commit is contained in:
Gregor Michels 2023-10-26 16:45:29 +02:00
commit 74412c51a4
9 changed files with 229 additions and 0 deletions

11
get_linklocal_for_vm Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
set -e
mac_to_ipv6_ll() {
IFS=':'; set $1; unset IFS
echo "fe80::$(printf %02x $((0x$1 ^ 2)))$2:${3}ff:fe$4:$5$6"
}
mac_to_ipv6_ll $(qm config $1 | grep -oE ..:..:..:..:..:.. | tr '[:upper:]' '[:lower:]')