summaryrefslogtreecommitdiff
path: root/extra/dhcp/dhcp.install
blob: 2bcd9ea821136949d254060a98136c36fd01f491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
  [[ -f var/lib/dhcp/dhcpd.leases ]] || : >var/lib/dhcp/dhcpd.leases
  [[ -f var/lib/dhcp/dhcpd6.leases ]] || : >var/lib/dhcp/dhcpd6.leases
}

post_upgrade() {
  if (( $(vercmp $2 4.2.4.2) < 0 )); then
    echo ">>> Lease directory moved from /var/state/dhcp"
    echo "    to /var/lib/dhcp. Move your old lease files"
    echo "    if you want to keep using them."
  fi

  post_install
}