summaryrefslogtreecommitdiffstats
path: root/vhba-module/vhba-module.install
blob: 4f7e46025ca2c0f50915d2a8a464559401cf73c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copied/modified from frandom.install

# arg 1: the new package version
# arg 2: the old package version

post_install () {
  echo ">> Place 'vhba' in MODULES= in /etc/rc.conf to enable vhba on system boot."
  echo ">> This module needs to be recompiled for every kernel version upgrade."
  depmod -a
}

pre_remove () {
  rmmod vhba 2> /dev/null
}

post_remove () {
  depmod -a
}