summarylogtreecommitdiffstats
path: root/comodo-modules.install
blob: e188d2f3a1df5ff06b737e9b0898499e79556763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
run_depmod() {
  KERNEL=4.3.3-2-ARCH
  depmod $KERNEL
}

post_install() {
  run_depmod
  /usr/bin/printf '----------------------------------------------------\n'
  /usr/bin/printf '    Modules installed. You may need to restart\n'
  /usr/bin/printf '  cmdagent.service for the antivirus to load them.\n'
  /usr/bin/printf '    There is no need to modprobe/insmod manually\n'
  /usr/bin/printf '\n'
  /usr/bin/printf '  Be aware that you will need to update and rebuild\n'
  /usr/bin/printf ' this package every time you update the linux\n'
  /usr/bin/printf '                     package.\n'
  /usr/bin/printf '----------------------------------------------------\n'
}

post_upgrade() {
  run_depmod
  /usr/bin/printf '----------------------------------------------------\n'
  /usr/bin/printf '   Modules updated. Please reboot at your earliest\n'
  /usr/bin/printf '   convenience to ensure the new modules have been\n'
  /usr/bin/printf '                      loaded.\n'
  /usr/bin/printf '----------------------------------------------------\n'
}

post_remove() {
  run_depmod
  /usr/bin/printf '----------------------------------------------------\n'
  /usr/bin/printf '   Modules removed. Please reboot at your eariest\n'
  /usr/bin/printf '    convenience to ensure the modules have been\n'
  /usr/bin/printf '             removed from the kernel\n'
  /usr/bin/printf '----------------------------------------------------\n'
}