Source-Changes-HG archive

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

[src/trunk]: src/etc/etc.i386 be consistent, and use "mkdir foo 2>/dev/null" ...



details:   https://anonhg.NetBSD.org/src/rev/a96b22ca0837
branches:  trunk
changeset: 522094:a96b22ca0837
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Feb 11 12:54:13 2002 +0000

description:
be consistent, and use "mkdir foo 2>/dev/null" instead of "mkdir -p foo"
(to suppress errors if foo already exists)

diffstat:

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

diffs (20 lines):

diff -r f5df640f936b -r a96b22ca0837 etc/etc.i386/MAKEDEV
--- a/etc/etc.i386/MAKEDEV      Mon Feb 11 12:43:55 2002 +0000
+++ b/etc/etc.i386/MAKEDEV      Mon Feb 11 12:54:13 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.167 2002/02/11 12:27:10 martti Exp $
+#      $NetBSD: MAKEDEV,v 1.168 2002/02/11 12:54:13 lukem Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -856,7 +856,7 @@
        ;;
 
 altq)
-       mkdir -p altq
+       mkdir altq 2>/dev/null
        chmod 755 altq
        unit=0
        for dev in altq cbq wfq afm fifoq red rio localq hfsc \



Home | Main Index | Thread Index | Old Index