From 1c7ce1ac542fb8fa3f13d9a3ae5ec99823b63d6c Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 11 Apr 1995 19:46:25 +0000 Subject: Initial revision --- devio/MAKEDEV | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 devio/MAKEDEV (limited to 'devio/MAKEDEV') diff --git a/devio/MAKEDEV b/devio/MAKEDEV new file mode 100644 index 00000000..356a5b02 --- /dev/null +++ b/devio/MAKEDEV @@ -0,0 +1,41 @@ +#!/bin/sh +# +# Make standard devices +# + +PATH=/bin + +for I; do + case "$I" in + std) + settrans -cf console /hurd/term console + + settrans -cf tty /hurd/magic tty + + settrans -cf null /hurd/null + settrans -cf zero /hurd/null -z + + #settrans -cf stdin /hurd/magic fd/0 + #settrans -cf stdout /hurd/magic fd/1 + #settrans -cf stderr /hurd/magic fd/2 + ;; + + fd*|mt*) + settrans -cf r$I /hurd/devio $I + settrans -cf $I /hurd/devio -b $I + ;; + + rd*|sd*|hd*) + if expr $I : '[a-z]*[0-9][0-9]*\([a-z]*\)' > /dev/null; then + settrans -cf r$I /hurd/devio $I + settrans -cf $I /hurd/devio -b $I + else + echo 1>&2 $0: $I: Must supply a device number and partition + exit 1 + fi + ;; + + *) + echo $0: $I: Unknown device + esac +done -- cgit v1.2.3