Browse Source

fix chN (N > 0) problem

OPENBSD_2_3
mickey 27 years ago
parent
commit
ee2abc0b62
7 changed files with 14 additions and 15 deletions
  1. +2
    -2
      src/etc/etc.alpha/MAKEDEV
  2. +2
    -2
      src/etc/etc.amiga/MAKEDEV
  3. +2
    -2
      src/etc/etc.arm32/MAKEDEV
  4. +2
    -2
      src/etc/etc.i386/MAKEDEV
  5. +2
    -2
      src/etc/etc.mac68k/MAKEDEV
  6. +2
    -2
      src/etc/etc.powerpc/MAKEDEV
  7. +2
    -3
      src/etc/etc.sparc/MAKEDEV

+ 2
- 2
src/etc/etc.alpha/MAKEDEV View File

@ -1,5 +1,5 @@
#!/bin/sh - #!/bin/sh -
# $OpenBSD: MAKEDEV,v 1.28 1997/09/16 06:00:49 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.29 1997/12/08 21:27:34 mickey Exp $
# $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $ # $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
@ -336,7 +336,7 @@ ch*)
ch*) name=ch; chr=14;; ch*) name=ch; chr=14;;
esac esac
rm -f $name$unit rm -f $name$unit
mknod ${name}${unit} c $chr `expr $unit '*' 16 + 0`
mknod ${name}${unit} c $chr $unit
chown root.operator ${name}${unit} chown root.operator ${name}${unit}
chmod 640 ${name}${unit} chmod 640 ${name}${unit}
umask 77 umask 77


+ 2
- 2
src/etc/etc.amiga/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.29 1997/10/16 07:29:56 niklas Exp $
# $OpenBSD: MAKEDEV,v 1.30 1997/12/08 21:27:37 mickey Exp $
# $NetBSD: MAKEDEV,v 1.21 1996/05/19 21:03:49 veego Exp $ # $NetBSD: MAKEDEV,v 1.21 1996/05/19 21:03:49 veego Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
@ -321,7 +321,7 @@ ch*)
ch*) name=ch; chr=40;; ch*) name=ch; chr=40;;
esac esac
rm -f $name$unit rm -f $name$unit
mknod $name$unit c $chr `expr $unit '*' 16 + 0`
mknod $name$unit c $chr $unit
chown root.operator $name$unit chown root.operator $name$unit
chmod 640 $name$unit chmod 640 $name$unit
umask 77 umask 77


+ 2
- 2
src/etc/etc.arm32/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.10 1997/09/16 06:00:54 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.11 1997/12/08 21:27:38 mickey Exp $
# $NetBSD: MAKEDEV,v 1.3 1996/04/26 20:10:24 mark Exp $ # $NetBSD: MAKEDEV,v 1.3 1996/04/26 20:10:24 mark Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
@ -267,7 +267,7 @@ ch*)
ch*) name=ch; chr=27;; ch*) name=ch; chr=27;;
esac esac
rm -f $name$unit rm -f $name$unit
mknod ${name}${unit} c $chr `expr $unit '*' 16 + 0`
mknod ${name}${unit} c $chr $unit
chown root.operator ${name}${unit} chown root.operator ${name}${unit}
chmod 640 ${name}${unit} chmod 640 ${name}${unit}
umask 77 umask 77


+ 2
- 2
src/etc/etc.i386/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.52 1997/10/06 05:17:17 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.53 1997/12/08 21:27:39 mickey Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $ # $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
@ -419,7 +419,7 @@ ch*)
ch*) name=ch; chr=17;; ch*) name=ch; chr=17;;
esac esac
rm -f $name$unit rm -f $name$unit
mknod $name$unit c $chr `expr $unit '*' 16 + 0`
mknod $name$unit c $chr $unit
chown root.operator $name$unit chown root.operator $name$unit
chmod 640 $name$unit chmod 640 $name$unit
umask 77 umask 77


+ 2
- 2
src/etc/etc.mac68k/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.20 1997/09/16 06:01:00 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.21 1997/12/08 21:27:41 mickey Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
# All rights reserved. # All rights reserved.
@ -300,7 +300,7 @@ ch*)
rm -f $name$unit rm -f $name$unit
case $unit in case $unit in
0|1|2|3|4|5|6) 0|1|2|3|4|5|6)
mknod ${name}${unit} c $chr `expr $unit '*' 16 + 0`
mknod ${name}${unit} c $chr $unit
chown root.operator ${name}${unit} chown root.operator ${name}${unit}
chmod 640 ${name}${unit} chmod 640 ${name}${unit}
;; ;;


+ 2
- 2
src/etc/etc.powerpc/MAKEDEV View File

@ -1,5 +1,5 @@
#!/bin/sh - #!/bin/sh -
# $OpenBSD: MAKEDEV,v 1.13 1997/10/13 14:45:06 pefo Exp $
# $OpenBSD: MAKEDEV,v 1.14 1997/12/08 21:27:42 mickey Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
# All rights reserved. # All rights reserved.
@ -322,7 +322,7 @@ ch*)
rm -f $name$unit rm -f $name$unit
case $unit in case $unit in
0|1|2|3|4|5|6) 0|1|2|3|4|5|6)
mknod ${name}${unit} c $chr `expr $unit '*' 16 + 0`
mknod ${name}${unit} c $chr $unit
chgrp operator ${name}${unit} chgrp operator ${name}${unit}
chmod 640 ${name}${unit} chmod 640 ${name}${unit}
;; ;;


+ 2
- 3
src/etc/etc.sparc/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.33 1997/09/16 03:03:03 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.34 1997/12/08 21:27:43 mickey Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
# All rights reserved. # All rights reserved.
@ -454,8 +454,7 @@ ch*)
ch*) name=ch; chr=19;; ch*) name=ch; chr=19;;
esac esac
rm -f $name$unit rm -f $name$unit
sixt=`mult $unit 16`
mknod $name$unit c $chr `add $sixt 0`
mknod $name$unit c $chr $unit
chown root.operator $name$unit chown root.operator $name$unit
chmod 640 $name$unit chmod 640 $name$unit
umask 77 umask 77


Loading…
Cancel
Save