blob: d9264d853db2f355eeae3c17c05c74de24f00fa7 (
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 /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:
|