From 2b1632e130ced3b21dade863beb19753d0c176d7 Mon Sep 17 00:00:00 2001 From: niklas Date: Fri, 2 May 1997 08:21:55 +0000 Subject: [PATCH] Add missing ch* device creation case. Remove ipl & ipf before recreating --- etc/etc.amiga/MAKEDEV | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/etc/etc.amiga/MAKEDEV b/etc/etc.amiga/MAKEDEV index 2583bb334ce..12529e76f84 100644 --- a/etc/etc.amiga/MAKEDEV +++ b/etc/etc.amiga/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.19 1997/04/23 20:38:59 gvf Exp $ +# $OpenBSD: MAKEDEV,v 1.20 1997/05/02 08:21:55 niklas Exp $ # $NetBSD: MAKEDEV,v 1.21 1996/05/19 21:03:49 veego Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -120,7 +120,7 @@ floppy) std) rm -f console drum kmem mem reload null zero tty - rm -f klog stdin stdout stderr + rm -f klog stdin stdout stderr ipf mknod console c 0 0 mknod drum c 3 0 ; chmod 640 drum ; chown root.kmem drum mknod kmem c 2 1 ; chmod 640 kmem ; chown root.kmem kmem @@ -253,6 +253,18 @@ sd*|vnd*|ccd*|wd*) umask 77 ;; +ch*) + umask 2 ; unit=`expr $i : '..\(.*\)'` + case $i in + ch*) name=ch; chr=40;; + esac + rm -f $name$unit + mknod $name$unit c $chr `expr $unit '*' 16 + 0` + chown root.operator $name$unit + chmod 640 $name$unit + umask 77 + ;; + cd*|acd*) umask 2 ; unit=`expr $i : '.*cd\(.*\)'` case $i in @@ -451,6 +463,7 @@ lpt*|lpa*) ;; ipl) + rm -f ipl mknod ipl c 34 0 chown root.wheel ipl ;; -- 2.20.1