Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc Teach both mac68k and macppc to create dialout devices. ...
details: https://anonhg.NetBSD.org/src/rev/8a0a3b6eabc9
branches: trunk
changeset: 474843:8a0a3b6eabc9
user: wrstuden <wrstuden%NetBSD.org@localhost>
date: Thu Jul 22 18:46:26 1999 +0000
description:
Teach both mac68k and macppc to create dialout devices. Modeled after
etc.i386/MAKEDEV's support.
diffstat:
etc/etc.mac68k/MAKEDEV | 12 ++++++++----
etc/etc.macppc/MAKEDEV | 12 ++++++++----
2 files changed, 16 insertions(+), 8 deletions(-)
diffs (71 lines):
diff -r 7d5706a18a41 -r 8a0a3b6eabc9 etc/etc.mac68k/MAKEDEV
--- a/etc/etc.mac68k/MAKEDEV Thu Jul 22 18:28:30 1999 +0000
+++ b/etc/etc.mac68k/MAKEDEV Thu Jul 22 18:46:26 1999 +0000
@@ -20,7 +20,7 @@
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# from: @(#)MAKEDEV 5.2 (Berkeley) 6/22/90
-# $NetBSD: MAKEDEV,v 1.38 1999/03/26 08:45:25 ender Exp $
+# $NetBSD: MAKEDEV,v 1.39 1999/07/22 18:46:26 wrstuden Exp $
#
# Device "make" file. Valid arguments:
# all a smattering -- at least one of each except ch*
@@ -66,6 +66,9 @@
# asc* Apple Sound Chip
#
+dialin=0
+dialout=524288 # high bit of the minor number
+
PATH=/sbin:/bin/:/usr/bin:/usr/sbin
umask 77
for i
@@ -198,9 +201,10 @@
tty*)
unit=${i#tty}
- rm -f ser$unit tty$unit tty0$unit
- mknod tty0$unit c 12 $unit
- chown uucp.wheel tty0$unit
+ rm -f ser$unit tty$unit tty0$unit dty0$unit
+ mknod tty0$unit c 12 $(($unit + $dialin ))
+ mknod tty0$unit c 12 $(($unit + $dialout))
+ chown uucp.wheel tty0$unit dty0$unit
;;
pty*)
diff -r 7d5706a18a41 -r 8a0a3b6eabc9 etc/etc.macppc/MAKEDEV
--- a/etc/etc.macppc/MAKEDEV Thu Jul 22 18:28:30 1999 +0000
+++ b/etc/etc.macppc/MAKEDEV Thu Jul 22 18:46:26 1999 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.10 1999/03/22 14:05:34 tsubai Exp $
+# $NetBSD: MAKEDEV,v 1.11 1999/07/22 18:46:26 wrstuden Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -79,6 +79,9 @@
# ch* SCSI changer
#
+dialin=0
+dialout=524288 # high bit of the minor number
+
PATH=/sbin:/usr/sbin:/bin:/usr/bin
umask 77
for i
@@ -234,9 +237,10 @@
tty*)
unit=${i#???}
- rm -f tty0$unit
- mknod tty0$unit c 12 $unit
- chown uucp.wheel tty0$unit
+ rm -f tty0$unit dty0$unit
+ mknod tty0$unit c 12 $(($unit + $dialin ))
+ mknod dty0$unit c 12 $(($unit + $dialout))
+ chown uucp.wheel tty0$unit dty0$unit
;;
pty*)
Home |
Main Index |
Thread Index |
Old Index