diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-04-11 19:46:25 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-04-11 19:46:25 +0000 |
commit | 1c7ce1ac542fb8fa3f13d9a3ae5ec99823b63d6c (patch) | |
tree | 627dbdb84ac26a514c56df3dd393c0110778683f | |
parent | 5f6b2c7a0f24b2cc789470c1e154737c377300ba (diff) |
Initial revision
-rw-r--r-- | devio/MAKEDEV | 41 |
1 files changed, 41 insertions, 0 deletions
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 |