DataMuseum.dk

Presents historical artifacts from the history of:

ICL Comet 32

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about ICL Comet 32

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦215dea00b⟧ TextFile

    Length: 3262 (0xcbe)
    Types: TextFile
    Notes: UNIX file
    Names: »MAKEDEV.OLD«

Derivation

└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
    └─⟦2daeb6185⟧ »/h« UNIX Filesystem
        └─⟦this⟧ »dev/MAKEDEV.OLD« 

TextFile

#! /bin/sh
#	MAKEDEV	for GENIX 
#
#	Mats Josefsson, 1985-03-07
#
# Device "make" file.  Valid arguments:
#	std	standard devices
#	local	configuration specific devices
# Tapes:
#	tc*
# Disks:
#	dc*
# Terminal multiplexors:
#	tty
# Pseudo terminals:
#	pty
# Printers:
#	lp
# Special purpose devices:
#	bm
umask 77
for i
do
case $i in

all)
	/dev/MAKEDEV std lp flop tty pty dc1 bm
	;;
std)
	/etc/mknod console	c 0 0	; chmod 666 console
	/etc/mknod drum		b 0 9
	/etc/mknod kmem		c 1 1
	/etc/mknod mem		c 1 0
	/etc/mknod null		c 1 2	; chmod 666 null
	/etc/mknod tty		c 3 1	; chmod 666 tty
	/etc/mknod ss232	c 11 0  ; chmod 666 ss232
	;;

lp)
	/etc/mknod lp		c 9 0	; chmod 666 lp
	;;

flop)
	/etc/mknod flop		b 2 0	; chmod 666 flop
	/etc/mknod rflop	c 10 0	; chmod 666 rflop
	/etc/mknod flop1	b 2 1	; chmod 666 flop1
	/etc/mknod rflop1	c 10 1	; chmod 666 rflop1
	;;

tty)
	/etc/mknod tty00 	c 8 0
	/etc/mknod tty01 	c 8 1
	/etc/mknod tty02 	c 8 2
	/etc/mknod tty03 	c 8 3
	/etc/mknod tty04 	c 8 4
	/etc/mknod tty05 	c 8 5
	/etc/mknod tty06 	c 8 6
	/etc/mknod tty07 	c 8 7
	;;

pty)
	/etc/mknod pty0		c 5 0	; chmod 666 pty0
	/etc/mknod pty1		c 5 1	; chmod 666 pty1
	/etc/mknod pty2		c 5 2	; chmod 666 pty2
	/etc/mknod pty3		c 5 3	; chmod 666 pty3
	/etc/mknod pty4		c 5 4	; chmod 666 pty4
	/etc/mknod pty5		c 5 5	; chmod 666 pty5
	/etc/mknod ttyp0	c 4 0	; chmod 666 ttyp0
	/etc/mknod ttyp1	c 4 1	; chmod 666 ttyp1
	/etc/mknod ttyp2	c 4 2	; chmod 666 ttyp2
	/etc/mknod ttyp3	c 4 3	; chmod 666 ttyp3
	/etc/mknod ttyp4	c 4 4	; chmod 666 ttyp4
	/etc/mknod ttyp5	c 4 5	; chmod 666 ttyp5
	;;

dc*)
	case $i in
	dc*) name=dc;;
	esac
	unit=`expr $i : "$name\(.*\)"`
	case $unit in
	0|1|2|3|4|5|6)
		/etc/mknod ${name}${unit}a b 0 `expr ${unit} '*' 8 + 0`
		/etc/mknod ${name}${unit}b b 0 `expr ${unit} '*' 8 + 1`
		/etc/mknod ${name}${unit}c b 0 `expr ${unit} '*' 8 + 2`
		/etc/mknod ${name}${unit}d b 0 `expr ${unit} '*' 8 + 3`
		/etc/mknod ${name}${unit}e b 0 `expr ${unit} '*' 8 + 4`
		/etc/mknod ${name}${unit}f b 0 `expr ${unit} '*' 8 + 5`
		/etc/mknod ${name}${unit}g b 0 `expr ${unit} '*' 8 + 6`
		/etc/mknod ${name}${unit}h b 0 `expr ${unit} '*' 8 + 7`
		/etc/mknod r${name}${unit}a c 2 `expr ${unit} '*' 8 + 0`
		/etc/mknod r${name}${unit}b c 2 `expr ${unit} '*' 8 + 1`
		/etc/mknod r${name}${unit}c c 2 `expr ${unit} '*' 8 + 2`
		/etc/mknod r${name}${unit}d c 2 `expr ${unit} '*' 8 + 3`
		/etc/mknod r${name}${unit}e c 2 `expr ${unit} '*' 8 + 4`
		/etc/mknod r${name}${unit}f c 2 `expr ${unit} '*' 8 + 5`
		/etc/mknod r${name}${unit}g c 2 `expr ${unit} '*' 8 + 6`
		/etc/mknod r${name}${unit}h c 2 `expr ${unit} '*' 8 + 7`
		;;
	*)
		echo bad unit for $name in: $i
		;;
	esac
	;;

tc*)
	case $i in
	tc*) name=tc;;
	esac
	unit=`expr $i : "$name\(.*\)"`
	case $unit in
	0)
		/etc/mknod ${name}${unit}	b 1 0
		/etc/mknod n${name}${unit}	b 1 4
		/etc/mknod r${name}${unit}	c 6 0
		/etc/mknod nr${name}${unit}	c 6 4
		chmod 666 ${name}${unit}
		chmod 666 n${name}${unit}
		chmod 666 r${name}${unit}
		chmod 666 nr${name}${unit}
		;;
	4)
		/etc/mknod ${name}${unit}	b 1 4
		/etc/mknod r${name}${unit}	c 6 4
		chmod 666 ${name}${unit}
		chmod 666 r${name}${unit}
		;;
	*)
		echo bad unit for $name in: $i
		;;
	esac
	;;

bm)
	/etc/mknod bm	c 7 0
	chmod 600 bm
	;;
esac
done