summaryrefslogtreecommitdiff
path: root/tools/hook-dhclient
blob: d099979a983ffb3410eeacdad6e1ae9d875036c0 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# This script writes DHCP lease information into the cloud-init run directory
# It is sourced, not executed.  For more information see dhclient-script(8).

case "$reason" in
   BOUND) cloud-init dhclient-hook up "$interface";;
   DOWN|RELEASE|REBOOT|STOP|EXPIRE)
      cloud-init dhclient-hook down "$interface";;
esac