diff --git a/rootfs/standard/usr/bin/mynode_startup.sh b/rootfs/standard/usr/bin/mynode_startup.sh index 3408edee..5c6b339a 100755 --- a/rootfs/standard/usr/bin/mynode_startup.sh +++ b/rootfs/standard/usr/bin/mynode_startup.sh @@ -65,8 +65,9 @@ set +e touch /tmp/repairing_drive for d in /dev/sd*1; do echo "Repairing drive $d ..."; - RC=$(fsck -y $d > /tmp/fsck_results 2>&1) - if [ $RC -ne 0 ]; then + fsck -y $d > /tmp/fsck_results 2>&1 + RC=$? + if [ "$RC" -ne 0 ]; then touch /tmp/fsck_error fi done