Module Name:    src
Committed By:   kre
Date:           Sat Sep 22 13:48:22 UTC 2018

Modified Files:
        src/etc: MAKEDEV.tmpl

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


To generate a diff of this commit:
cvs rdiff -u -r1.192 -r1.193 src/etc/MAKEDEV.tmpl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/MAKEDEV.tmpl
diff -u src/etc/MAKEDEV.tmpl:1.192 src/etc/MAKEDEV.tmpl:1.193
--- src/etc/MAKEDEV.tmpl:1.192	Sat Jul 28 14:13:13 2018
+++ src/etc/MAKEDEV.tmpl	Sat Sep 22 13:48:22 2018
@@ -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 @@ nvme[0-9]*ns[0-9]*)
 	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

Reply via email to