summaryrefslogtreecommitdiffstats
path: root/abs/core/mdadm/mdadm.install
blob: cfeed3c5bfd9943657349e67c6cd5078f7c37f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# arg 1:  the new package version
# arg 2:  the old package version
post_install() {
   # Add the mdadm monitoring service
   /sbin/add_service.sh mdadm
}

post_upgrade() {
  if [ "$(vercmp $2 2.6.8-2)" -lt 0 -a "$(grep raid_partitions /etc/mkinitcpio.conf)" ]; then
    echo "Attention mdadm update:"
    echo "raid_partitions hook has been replaced by the more powerfull mdadm hook."
    echo "Please update your /etc/mkinitcpio.conf accordingly."
  fi
}

pre_remove() {
   # Remove the mdadm monitoring service
   /sbin/remove_service.sh mdadm
}