~smoser/cloud-init/azure_dhcp

« back to all changes in this revision

Viewing changes to tools/hook-network-manager

  • 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
1
#!/bin/bash
2
2
# Writes DHCP lease information into the cloud-init data directory.
3
3
#
4
 
PYTHON_BINARY=%%PYTHON_BINARY%%
5
4
 
6
5
case "$1:$2" in
7
 
   *:up) exec $PYTHON_BINARY -m cloudinit.cmd.dhclient_hook
 
6
   *:up) exec cloud-init dhclient_hook
8
7
   *:down) ;;
9
8
esac