summaryrefslogtreecommitdiffstats
path: root/abs/core/mdadm/mdadm.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-24 02:53:27 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-24 02:53:27 (GMT)
commiteb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5 (patch)
tree14fbe26d73dabe2b333e187af28463687a824382 /abs/core/mdadm/mdadm.install
parent66d9054984063e6c34f034b135bf8153e0e8b431 (diff)
downloadlinhes_pkgbuild-eb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5.zip
linhes_pkgbuild-eb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5.tar.gz
linhes_pkgbuild-eb64f8a36a7ce7572bac1fb5a6ec17e08bb9a5e5.tar.bz2
mdadm: upgrade
Diffstat (limited to 'abs/core/mdadm/mdadm.install')
-rw-r--r--abs/core/mdadm/mdadm.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/abs/core/mdadm/mdadm.install b/abs/core/mdadm/mdadm.install
new file mode 100644
index 0000000..cfeed3c
--- /dev/null
+++ b/abs/core/mdadm/mdadm.install
@@ -0,0 +1,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
+}