summarylogtreecommitdiffstats
path: root/install
blob: b283ad90cf7024c46a0f4f8eb62f1a37b36f7b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
  dkms add srandom/${1%-*}
  cat << EOF
==> To build and install your modules run: dkms install srandom/${1%-*}
==> To do this automatically at startup run: systemctl enable dkms.service
EOF
}

pre_upgrade() {
  pre_remove "$2"
}

post_upgrade() {
  post_install "$1"
}

pre_remove() {
  [ -n "${1%-*}" ] && dkms remove srandom/${1%-*} --all &>/dev/null || true
}