Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/etc/etc.vax Approved by jhawk
details: https://anonhg.NetBSD.org/src/rev/a670b61e046d
branches: netbsd-1-5
changeset: 489389:a670b61e046d
user: matt <matt%NetBSD.org@localhost>
date: Tue Sep 05 18:07:04 2000 +0000
description:
Approved by jhawk
>etc/etc.vax/MAKEDEV (1.32)
> Create st device entries correctly
diffstat:
etc/etc.vax/MAKEDEV | 29 ++++++++++++++++++++++++++---
1 files changed, 26 insertions(+), 3 deletions(-)
diffs (50 lines):
diff -r 732e95010a67 -r a670b61e046d etc/etc.vax/MAKEDEV
--- a/etc/etc.vax/MAKEDEV Tue Sep 05 17:11:06 2000 +0000
+++ b/etc/etc.vax/MAKEDEV Tue Sep 05 18:07:04 2000 +0000
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $NetBSD: MAKEDEV,v 1.30.4.1 2000/08/11 20:43:40 mason Exp $
+# $NetBSD: MAKEDEV,v 1.30.4.2 2000/09/05 18:07:04 matt Exp $
#
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
#
@@ -129,14 +129,37 @@
chmod 666 fd/*
;;
-ht*|tm*|mt*|ts*|ut*|st*)
+st*)
+ case $i in
+ st*) name=st; unit=${i#st}; blk=21; chr=60;;
+ esac
+ rm -f $name$unit n$name$unit e$name$unit en$name$unit \
+ r$name$unit nr$name$unit er$name$unit enr$name$unit
+ mknod ${name}${unit} b $blk $(($unit * 16+ 0))
+ mknod n${name}${unit} b $blk $(($unit * 16+ 1))
+ mknod e${name}${unit} b $blk $(($unit * 16+ 2))
+ mknod en${name}${unit} b $blk $(($unit * 16+ 3))
+ mknod r${name}${unit} c $chr $(($unit * 16+ 0))
+ mknod nr${name}${unit} c $chr $(($unit * 16+ 1))
+ mknod er${name}${unit} c $chr $(($unit * 16+ 2))
+ mknod enr${name}${unit} c $chr $(($unit * 16+ 3))
+ chgrp operator ${name}${unit} n${name}${unit} \
+ e$name$unit en$name$unit \
+ r${name}${unit} nr${name}${unit} \
+ er${name}${unit} enr${name}${unit}
+ chmod 660 ${name}${unit} n${name}${unit} \
+ e$name$unit en$name$unit \
+ r${name}${unit} nr${name}${unit} \
+ er${name}${unit} enr${name}${unit}
+ ;;
+
+ht*|tm*|mt*|ts*|ut*)
case $i in
ht*) name=ht; unit=${i#ht}; blk=1; chr=5 ;;
mt*) name=mt; unit=${i#mt}; blk=15; chr=38;;
tm*) name=tm; unit=${i#tm}; blk=5; chr=14;;
ts*) name=ts; unit=${i#ts}; blk=6; chr=16;;
ut*) name=ut; unit=${i#ut}; blk=10; chr=17;;
- st*) name=st; unit=${i#st}; blk=21; chr=60;;
esac
case $unit in
[0-7])
Home |
Main Index |
Thread Index |
Old Index