summaryrefslogtreecommitdiff
path: root/tools/hook-rhel.sh
blob: 5e963a89a50aa2efcb0a5347eedb307cc2b87410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Current versions of RHEL and CentOS do not honor the directory
# /etc/dhcp/dhclient-exit-hooks.d so this file can be placed in
# /etc/dhcp/dhclient.d instead

hook-rhel_config(){
    cloud-init dhclient-hook up "$interface"
}

hook-rhel_restore(){
    cloud-init dhclient-hook down "$interface"
}