Source-Changes-HG archive

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

[src/trunk]: src/etc Avoid use of test -o for when this is used as part of an...



details:   https://anonhg.NetBSD.org/src/rev/c344b8916a27
branches:  trunk
changeset: 433586:c344b8916a27
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Sep 22 13:48:22 2018 +0000

description:
Avoid use of test -o for when this is used as part of an INSTALL system
and the SMALL test does not support -o

diffstat:

 etc/MAKEDEV.tmpl |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r e5af76aaf54b -r c344b8916a27 etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl  Sat Sep 22 13:17:46 2018 +0000
+++ b/etc/MAKEDEV.tmpl  Sat Sep 22 13:48:22 2018 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: MAKEDEV.tmpl,v 1.192 2018/07/28 14:13:13 sevan Exp $
+#      $NetBSD: MAKEDEV.tmpl,v 1.193 2018/09/22 13:48:22 kre Exp $
 #
 # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -2229,7 +2229,7 @@
        unit=${i#nvme}
        unit=${unit%ns*}
        subunit=${i#nvme${unit}ns}
-       if [ 0$subunit -le 0 -o 0$subunit -ge 65536 ]; then
+       if [ 0$subunit -le 0 ] || [ 0$subunit -ge 65536 ]; then
                warn "bad nsid for $i: $subunit"
                break
        fi



Home | Main Index | Thread Index | Old Index