.
This commit is contained in:
commit
08c0e9c107
33 files changed
+4312
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ADDR="${IMDS_LINK_LOCAL_ADDRESS:-169.254.169.254}"
|
||||
|
||||
if ! command -v ifconfig >/dev/null 2>&1; then
|
||||
echo "ifconfig command is required" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ifconfig lo0 | grep -q "$ADDR"; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
ifconfig lo0 alias "$ADDR/32" up
|
||||
Reference in new issue
Block a user