diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2000-08-16 15:38:28 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2000-08-16 15:38:28 +0000 |
commit | 877217cf8c14f66f8be83a0b7d05d58b8fa0b38b (patch) | |
tree | c348f628194e85259439e2cb64a5e6ee4e442c2f /etc | |
parent | cff911835042d428af6b02913ba470a3a2ebcae0 (diff) |
Catch the bogus 'MAKEDEV mouse' and spit out a reasonable
error message. OK deraadt@
Diffstat (limited to 'etc')
-rw-r--r-- | etc/etc.i386/MAKEDEV | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV index 3cb1efd3161..3a611364131 100644 --- a/etc/etc.i386/MAKEDEV +++ b/etc/etc.i386/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.81 2000/08/04 22:52:49 fgsch Exp $ +# $OpenBSD: MAKEDEV,v 1.82 2000/08/16 15:38:27 marc Exp $ # $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -557,13 +557,20 @@ pms*) chown root.wheel psm${unit} ;; -mouse*) # (XXX) - name=${i##mouse-} - if [ ! -c $name ]; then - /bin/sh $0 $name # make the appropriate device - fi - rm -f mouse - ln -s $name mouse +mouse*) # (XXX) + case $i in + mouse-*) + name=${i##mouse-} + if [ ! -c $name ]; then + /bin/sh $0 $name # make the appropriate device + fi + rm -f mouse + ln -s $name mouse + ;; + *) + echo no such device: use mouse-\${dev}, e.g. mouse-cua00 + ;; + esac ;; audio*) |