summaryrefslogtreecommitdiff
path: root/devio
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-14 12:57:14 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-14 12:57:14 +0000
commitfddb9a19696ce0e809fb8b1f48b7b69c34a5ae6b (patch)
treef566da9c506567b6cd3b68280ab5e23e9ee0e60a /devio
parent8dc2b72cb93e8a7e80f7f9e57a21f4f10bac1154 (diff)
foo.
Diffstat (limited to 'devio')
-rw-r--r--devio/MAKEDEV18
1 files changed, 14 insertions, 4 deletions
diff --git a/devio/MAKEDEV b/devio/MAKEDEV
index bf5217dc..d992d06a 100644
--- a/devio/MAKEDEV
+++ b/devio/MAKEDEV
@@ -18,19 +18,28 @@ for I; do
console|tty[0-9]?|tty[0-9a-f])
$ST $I /hurd/term $_CWD/$I device $I;;
null)
- $ST $I /hurd/null ;;
+ $ST $I /hurd/null
+ chmod 666 $I
+ ;;
zero)
- $ST $I /hurd/null -z ;;
+ $ST $I /hurd/null -z
+ chmod 666 $I
+ ;;
tty)
- $ST $I /hurd/magic tty ;;
+ $ST $I /hurd/magic tty
+ chmod 666 $I
+ ;;
fd)
$ST $I /hurd/magic fd
+ chmod 666 $I
ln -f -s fd/0 stdin
ln -f -s fd/1 stdout
ln -f -s fd/2 stderr
;;
time)
- $ST $I /hurd/devport time ;;
+ $ST $I /hurd/devport time
+ chmod 666 $I
+ ;;
# ptys
[pt]ty[pqPQ]?)
@@ -38,6 +47,7 @@ for I; do
ID="`expr substr $I 4 99`"
$ST pty$ID /hurd/term $_CWD/pty$ID pty-master $_CWD/tty$ID
$ST tty$ID /hurd/term $_CWD/tty$ID pty-slave $_CWD/pty$ID
+ chmod 666 pty$ID tty$ID
;;
[pt]ty[pqPQ])
# Make a bunch of ptys