summaryrefslogtreecommitdiffstats
path: root/vhba-module/vhba-module.install
blob: eddff767515f1f34821e2f2b3dcfdcdfd6ab6562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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
}

op=$1
shift
$op $*