Subject: Re: MAKEDEV does no longer support overwriting device nodes
To: None <current-users@NetBSD.org>
From: Bernd Ernesti <netbsd@lists.veego.de>
List: current-users
Date: 03/08/2004 20:18:37
On Mon, Mar 08, 2004 at 11:55:28PM +1100, Luke Mewburn wrote:
[..]
> Does running the script through 'sh -x' provide any insight?
./MAKEDEV -f all
..
+ MKNOD=mknod -F netbsd
..
+ mknod -F netbsd -m 600 -g #0 -u #0 console c 0 0
mknod: console: File exists
+ mkdev constty c 0 1 600
+ false
+ mknod -F netbsd -m 600 -g #0 -u #0 constty c 0 1
mknod: constty: File exists
+ mkdev drum c 4 0 640 2
+ false
+ mknod -F netbsd -m 640 -g #2 -u #0 drum c 4 0
mknod: drum: File exists
+ mkdev kmem c 2 1 640 2
+ false
> Can you provide the command line that's failing?
The old MAKEDEV has an rm -f which removes the node first:
mkdev() {
rm -f $1
mknod $1 $2 $3 $4
test -n "$5" && chmod $5 $1
test -n "$6" && chgrp $6 $1
}
The new mkdev() doesn't have that.
Bernd