summaryrefslogtreecommitdiff
path: root/etc/etc.hp300
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2002-08-09 02:39:15 +0000
committerlukem <lukem@NetBSD.org>2002-08-09 02:39:15 +0000
commitfa4442cae4b905fb57763b8fe82fdeab427342d9 (patch)
tree653dd3948b2ea34a09770b6d86b0b6379be96deb /etc/etc.hp300
parent17110be88bd5446e30b5e9b834ad3e30fa3a3923 (diff)
- in local), only run $0.local if it is an existing file
(prevents spurious warning for mfs /dev, amongst other things) - for mipsco, news68k, newsmips: ensure that "umask 77" is run after $0.local - for playstation2: add local) target, and use in all) (for consistency)
Diffstat (limited to 'etc/etc.hp300')
-rw-r--r--etc/etc.hp300/MAKEDEV10
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/etc.hp300/MAKEDEV b/etc/etc.hp300/MAKEDEV
index fe5ba06078a..d78d6c83cf4 100644
--- a/etc/etc.hp300/MAKEDEV
+++ b/etc/etc.hp300/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.48 2002/06/18 13:40:19 wiz Exp $
+# $NetBSD: MAKEDEV,v 1.49 2002/08/09 02:39:21 lukem Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -526,9 +526,11 @@ systrace)
;;
local)
- umask 0
- sh $0.local all
- umask 77
+ if [ -f "$0.local" ]; then
+ umask 0
+ sh $0.local all
+ umask 77
+ fi
;;
*)
echo $i: unknown device