Files
Arquivotheca.SunOS-4.1.4/usr.etc/cg8/cg8_exec.script
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

19 lines
404 B
Tcsh

#!/bin/csh -f
#
# @(#)cg8_exec.script 1.1 94/10/31 SMI
#
if $3 != "0" then
(echo "/dev/cgeight0 block major number is $3") > /dev/console
(echo "the cgeight driver isn't supposed to have any block devices") > /dev/console
endif
if $4 != "0" then
if ( -r /dev/cgeight0 ) then
rm /dev/cgeight0
endif
/etc/mknod /dev/cgeight0 c $4 0
chmod 666 /dev/cgeight0
cat /dev/cgeight0 >& /dev/null
endif