OXIESEC PANEL
- Current Dir:
/
/
etc
/
dhcp
/
dhclient-exit-hooks.d
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/07/2022 06:57:17 AM
rwxr-xr-x
📄
debug
1.39 KB
10/12/2017 12:48:06 PM
rw-r--r--
📄
hook-dhclient
805 bytes
09/17/2019 10:11:00 AM
rwxr-xr-x
📄
rfc3442-classless-routes
1.71 KB
04/16/2018 10:40:34 AM
rw-r--r--
📄
timesyncd
1.09 KB
04/20/2018 04:55:56 PM
rw-r--r--
Editing: hook-dhclient
Close
#!/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