Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/common Break the loop after a successful mount.



details:   https://anonhg.NetBSD.org/src/rev/20cbaa992793
branches:  trunk
changeset: 447035:20cbaa992793
user:      alnsn <alnsn%NetBSD.org@localhost>
date:      Sat Dec 29 01:04:38 2018 +0000

description:
Break the loop after a successful mount.

diffstat:

 distrib/common/cgdroot.rc |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 8d09ea86f234 -r 20cbaa992793 distrib/common/cgdroot.rc
--- a/distrib/common/cgdroot.rc Sat Dec 29 00:52:11 2018 +0000
+++ b/distrib/common/cgdroot.rc Sat Dec 29 01:04:38 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: cgdroot.rc,v 1.2 2018/12/29 00:52:11 alnsn Exp $
+#      $NetBSD: cgdroot.rc,v 1.3 2018/12/29 01:04:38 alnsn Exp $
 #
 # Copyright (c) 2013 Pierre Pronchery <khorben%defora.org@localhost>
 # All rights reserved.
@@ -40,6 +40,7 @@
 for dev in NAME=cgd.conf ROOT.a ; do
        if mount -o ro $dev /etc/cgd 2>/dev/null ; then
                mounted=$dev
+               break
        fi
 done
 if [ -z "$mounted" ]; then



Home | Main Index | Thread Index | Old Index