Server IP : 52.91.253.208 / Your IP : 3.137.178.9 [ Web Server : Apache System : Linux ip-172-26-9-9 4.19.0-25-cloud-amd64 #1 SMP Debian 4.19.289-1 (2023-07-24) x86_64 User : daemon ( 1) PHP Version : 7.3.18 Disable Function : NONE Domains : 3 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /etc/dhcp/dhclient-exit-hooks.d/ |
Upload File : |
#!/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