~smoser/cloud-init/azure_dhcp

« back to all changes in this revision

Viewing changes to tools/hook-rhel.sh

  • Committer: Brent Baude
  • Date: 2016-08-04 12:48:46 UTC
  • Revision ID: bbaude@redhat.com-20160804124846-tt1gybhdqpy8zkim
Rather than having the python executable for obtaining and storing the
dhclient information as its own executable, it is integrated into
cloud-init as a sub-command 'dhclient_hook'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
3
# Current versions of RHEL and CentOS do not honor
 
4
# the directory /etc/dhcp/dhclient-exit-hooks.d so
 
5
# this file can be placed in /etc/dhcp/dhclient.d
 
6
# instead
 
7
 
 
8
hook-rhel_config(){
 
9
    cloud-init dhclient_hook
 
10
}
 
11
 
 
12
hook-rhel_restore(){
 
13
    true
 
14
}