summaryrefslogtreecommitdiff
path: root/community/vhba-module/vhba-module.install
blob: 8458b2ae79034b4c6272240d6c430fc4b1417e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
post_upgrade() {
  ! grep -q 'cdemu' /etc/group && groupadd cdemu
  echo "  > Updating module dependencies..."
  EXTRAMODULES='extramodules-3.4-ARCH'
  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
}


post_install() {
  echo "  > Adding 'cdemu' group"
  ! grep -q 'cdemu' /etc/group && groupadd cdemu
  echo "  > Add 'vhba' to your modules array to autoload it"
  post_upgrade
}

post_remove() {
  post_upgrade
  echo "Removing 'cdemu' group"
  groupdel cdemu
}

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