Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 1998 11:01:25 +0200
From:      Ollivier Robert <roberto@eurocontrol.fr>
To:        "FreeBSD Current Users' list" <freebsd-current@FreeBSD.ORG>
Subject:   Problem with Poul-Henning's commit in /etc/rc
Message-ID:  <19980820110125.A17863@caerdonn.eurocontrol.fr>

next in thread | raw e-mail | index | archive | help
Unless I'm mistaken, the latest change from Poul-Henning to /etc/rc is bad
because failures are not detected anymore. The $? check is now after the
"echo" and will check its return code, not the one from mount.

Index: rc
===================================================================
RCS file: /home/ncvs/src/etc/rc,v
retrieving revision 1.148
retrieving revision 1.149
diff -u -2 -u -r1.148 -r1.149
--- rc  1998/08/10 19:53:50     1.148
+++ rc  1998/08/14 06:49:05     1.149
@@ -77,5 +77,7 @@
 umount -a >/dev/null 2>&1
 
+echo -n "Mounting NFS file systems"
 mount -a -t nonfs
+echo .
 if [ $? != 0 ]; then
        echo "Filesystem mount failed, startup aborted"

-- 
Ollivier ROBERT -=- Eurocontrol EEC/TS -=- Ollivier.Robert@eurocontrol.fr
FreeBSD caerdonn.eurocontrol.fr 3.0-CURRENT #5: Tue Apr 22 14:57:00 CEST 1997
roberto@caerdonn.eurocontrol.fr:/src/src/sys/compile/CAERDONN2  i386

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980820110125.A17863>