summarylogtreecommitdiffstats
path: root/mdadm.install
diff options
context:
space:
mode:
authorChris Severance2015-08-06 20:08:49 -0400
committerChris Severance2015-08-06 20:08:49 -0400
commit9cb75f5911d134cb7951fe7357719e08488eb014 (patch)
treed3250acdd00a2f295491a48aee56a318cf14ccab /mdadm.install
parent25d098eed60e348733a3b89561e33b16d568dab5 (diff)
downloadaur-9cb75f5911d134cb7951fe7357719e08488eb014.tar.gz
Improved PKGBUILD install, mdadm_udev_hook
Diffstat (limited to 'mdadm.install')
-rw-r--r--mdadm.install8
1 files changed, 7 insertions, 1 deletions
diff --git a/mdadm.install b/mdadm.install
index 25896f30be5c..4c22c159fb09 100644
--- a/mdadm.install
+++ b/mdadm.install
@@ -10,7 +10,7 @@ post_upgrade() {
#if [ -s '/etc/mkinitcpio.conf' ] && grep -q '^\s*HOOKS=".*\smdadm\s.*$' '/etc/mkinitcpio.conf'; then
# echo "Attention mdadm update:"
# echo "mdadm is deprecated for mdadm_udev"
- # echo "Please update your /etc/mkinitcpio.conf accordingly."
+ # echo "See the ArchWiki and update your /etc/mkinitcpio.conf accordingly."
#fi
if ! mdadm -D --scan >/dev/null; then
cat '/proc/mdstat'
@@ -33,3 +33,9 @@ post_install() {
fi
fi
}
+
+pre_remove() {
+ if [ -e '/proc/mdstat' ]; then
+ echo 'You still have active arrays. mdadm should be reinstalled soon.'
+ fi
+}