diff options
Diffstat (limited to 'packages/cortexa57-poky-linux/mdadm/mdadm/latest.pkg_prerm')
-rw-r--r-- | packages/cortexa57-poky-linux/mdadm/mdadm/latest.pkg_prerm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/cortexa57-poky-linux/mdadm/mdadm/latest.pkg_prerm b/packages/cortexa57-poky-linux/mdadm/mdadm/latest.pkg_prerm new file mode 100644 index 000000000000..f841451a173f --- /dev/null +++ b/packages/cortexa57-poky-linux/mdadm/mdadm/latest.pkg_prerm @@ -0,0 +1,9 @@ +#!/bin/sh +set -e +if systemctl >/dev/null 2>/dev/null; then + if [ -z "$D" ]; then + systemctl stop mdmonitor.service + + systemctl disable mdmonitor.service + fi +fi |