aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-02-03 20:45:43 +0200
committerBill Nottingham <notting@redhat.com>2011-03-01 14:13:23 -0500
commit8aba31240078aa1b4a7621715615743a73c9881f (patch)
tree3d5ebb8e48e7a167ba66ae4c8ce496aaad80d256 /systemd
parent3f296db591da779000a301b2b29560ee6df413f3 (diff)
downloadinitscripts-8aba31240078aa1b4a7621715615743a73c9881f.tar
initscripts-8aba31240078aa1b4a7621715615743a73c9881f.tar.gz
initscripts-8aba31240078aa1b4a7621715615743a73c9881f.tar.bz2
initscripts-8aba31240078aa1b4a7621715615743a73c9881f.tar.xz
initscripts-8aba31240078aa1b4a7621715615743a73c9881f.zip
Avoid some unnecessary stat calls.
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/fedora-storage-init2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/fedora-storage-init b/systemd/fedora-storage-init
index b01a4657..7f439bd9 100755
--- a/systemd/fedora-storage-init
+++ b/systemd/fedora-storage-init
@@ -31,7 +31,7 @@ if ! strstr "$cmdline" nodmraid && [ -x /sbin/dmraid ]; then
fi
# Start any MD RAID arrays that haven't been started yet
-[ -r /proc/mdstat -a -r /dev/md/md-device-map ] && /sbin/mdadm -IRs
+[ -r /proc/mdstat ] && [ -r /dev/md/md-device-map ] && /sbin/mdadm -IRs
if [ -x /sbin/lvm ]; then
action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y --sysinit