Subject: MAKEDEV overhaul?
To: None <tech-userlevel@netbsd.org>
From: Simon Burge <simonb@netbsd.org>
List: tech-userlevel
Date: 06/22/2000 10:14:56
Partially in reference to port-alpha/10411 (no MAKEDEV on alpha install
media) is it worth considering making MAKEDEV a standalone C program
(or /dev/MAKEDEV a script that simply execs /sbin/makedev) that reads
a config file? As well as the install media thing, every now and then
someone accidently adds the usage of a /usr program and that can break
things. Perhaps the most difficult part of such an exercise would be
coming up with a grammar thats general enough...
Nasty ugly thought time - you could even keep the config in /etc/MAKEDEV.
Have
#!/bin/sh
exec /sbin/makedev "$@"
and have /sbin/makedev skip everything up until the first 'exec'...
Simon.