diff --git a/etc/etc.dreamcast/MAKEDEV b/etc/etc.dreamcast/MAKEDEV index e04ad3a3d9ab..87906457fd71 100755 --- a/etc/etc.dreamcast/MAKEDEV +++ b/etc/etc.dreamcast/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $NetBSD: MAKEDEV,v 1.28 2002/10/23 22:56:30 jdolecek Exp $ +# $NetBSD: MAKEDEV,v 1.29 2002/11/15 14:45:40 itohy Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -137,6 +137,8 @@ wscons) maple) makedev mapleA mapleA1 mapleA2 mapleB mapleB1 mapleB2 makedev mapleC mapleC1 mapleC2 mapleD mapleD1 mapleD2 + makedev mmem0 mmem1 mmem2 mmem3 mmem4 mmem5 mmem6 mmem7 + makedev mlcd0 mlcd1 mlcd2 mlcd3 mlcd4 mlcd5 mlcd6 mlcd7 ;; std) @@ -176,10 +178,10 @@ md*) md*) name=md; unit=${i#md}; chr=24; blk=17;; esac rm -f $name$unit? r$name$unit? - mknod ${name}${unit}a b $blk $(($unit * 8 + 0)) - mknod ${name}${unit}c b $blk $(($unit * 8 + 2)) -# mknod r${name}${unit}a c $chr $(($unit * 8 + 0)) -# mknod r${name}${unit}c c $chr $(($unit * 8 + 2)) + mknod ${name}${unit}a b $blk $(($unit * 16 + 0)) + mknod ${name}${unit}c b $blk $(($unit * 16 + 2)) +# mknod r${name}${unit}a c $chr $(($unit * 16 + 0)) +# mknod r${name}${unit}c c $chr $(($unit * 16 + 2)) chgrp operator $name$unit? #r$name$unit? chmod 640 $name$unit? #r$name$unit? ;; @@ -312,10 +314,10 @@ gdrom*|cd*|mcd*) gdrom*) name=gdrom; unit=${i#gdrom}; chr=57; blk=19;; esac rm -f $name$unit? r$name$unit? - mknod ${name}${unit}a b $blk $(($unit * 8 + 0)) - mknod ${name}${unit}c b $blk $(($unit * 8 + 2)) - mknod r${name}${unit}a c $chr $(($unit * 8 + 0)) - mknod r${name}${unit}c c $chr $(($unit * 8 + 2)) + mknod ${name}${unit}a b $blk $(($unit * 16 + 0)) + mknod ${name}${unit}c b $blk $(($unit * 16 + 2)) + mknod r${name}${unit}a c $chr $(($unit * 16 + 0)) + mknod r${name}${unit}c c $chr $(($unit * 16 + 2)) chgrp operator $name$unit? r$name$unit? chmod 640 $name$unit? r$name$unit? ;; @@ -334,6 +336,31 @@ maple*) chmod 600 $name$subunit ;; +mmem*) + name=mmem; unit=${i#mmem}; chr=62; blk=21 + rm -f $name$unit.* r$name$unit.* + for pt in 0 # 1 2 3 4 ... 255 + do + #mknod ${name}${unit}.${pt}a b $blk $(($unit * 4096 + $pt * 16 + 0)) + mknod ${name}${unit}.${pt}c b $blk $(($unit * 4096 + $pt * 16 + 2)) + #mknod r${name}${unit}.${pt}a c $chr $(($unit * 4096 + $pt * 16 + 0)) + mknod r${name}${unit}.${pt}c c $chr $(($unit * 4096 + $pt * 16 + 2)) + done + chgrp operator $name$unit.* r$name$unit.* + chmod 640 $name$unit.* r$name$unit.* + ;; + +mlcd*) + name=mlcd; unit=${i#mlcd}; chr=63 + rm -f $name$unit.* + for pt in 0 # 1 2 3 4 ... 255 + do + mknod ${name}${unit}.${pt} c $chr $(($unit * 256 + $pt)) + done + chgrp operator $name$unit.* + chmod 640 $name$unit.* + ;; + bpf*|tun*|mms*|lms*|joy*) case $i in bpf*) name=bpf; unit=${i#bpf}; chr=23;;