░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/snap/core/17292/etc/dhcp/dhclient-exit-hooks.d
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: hook-dhclient
#!/bin/sh # This file is part of cloud-init. See LICENSE file for license information. # This script writes DHCP lease information into the cloud-init run directory # It is sourced, not executed. For more information see dhclient-script(8). is_azure() { local dmi_path="/sys/class/dmi/id/board_vendor" vendor="" if [ -e "$dmi_path" ] && read vendor < "$dmi_path"; then [ "$vendor" = "Microsoft Corporation" ] && return 0 fi return 1 } is_enabled() { # only execute hooks if cloud-init is enabled and on azure [ -e /run/cloud-init/enabled ] || return 1 is_azure } if is_enabled; then case "$reason" in BOUND) cloud-init dhclient-hook up "$interface";; DOWN|RELEASE|REBOOT|STOP|EXPIRE) cloud-init dhclient-hook down "$interface";; esac fi
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 debug
?
1.4 KB
2016-12-09 17:45
EDIT
📄 hook-dhclient
?
805 B
2021-03-19 14:37
EDIT
📄 rfc3442-classless-routes
?
1.7 KB
2022-11-04 12:52
EDIT
📄 timesyncd
?
1.1 KB
2021-04-01 17:13
EDIT