#!/bin/bash

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  if (( $(vercmp $2 5.0.16-3) < 0 )); then
    echo '==> Since version 5.0.16-2 kernel modules are loaded at boot by systemd-modules-load.'
    echo '==> Read modules-load.d man page to disable them.'
  fi
  echo 'Installing VirtualBox host DKMS modules'
  vboxver=6.1.12
  dkms autoinstall /usr/src/vboxhost-${vboxver}_OSE/dkms.conf || return 0
}

# vim:set ts=2 sw=2 ft=sh et:
