summaryrefslogtreecommitdiff
path: root/debian/mdadm-raid
diff options
context:
space:
mode:
authormadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-10-26 20:08:39 +0000
committermadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-10-26 20:08:39 +0000
commitabc69195da04ef6c1989cf8bc317e430449a4a37 (patch)
tree3be92e087a75d29b6bef7854976cb9c648144d54 /debian/mdadm-raid
parent02902909d101f98294bc07d04fa19773210e84da (diff)
exit after sending events
Diffstat (limited to 'debian/mdadm-raid')
-rw-r--r--debian/mdadm-raid5
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/mdadm-raid b/debian/mdadm-raid
index 91b3f86c..385db66d 100644
--- a/debian/mdadm-raid
+++ b/debian/mdadm-raid
@@ -156,7 +156,8 @@ case "${1:-}" in
*) :;;
esac
- done || exit $?
+ done
+ ret=$?
log_action_begin_msg "Generating udev events for MD arrays"
for uevent in /sys/block/md*/uevent; do
@@ -165,6 +166,8 @@ case "${1:-}" in
done
log_action_end_msg 0
+ [ $ret -ne 0 ] && exit $ret
+
else
log_problem "no $CONFIG file"
fi