On -current with devfs there is no MAKEDEV in /dev anymore, so use

it from ${SRC}/etc/MAKEDEV instead.

We may want to do this on -stable as well, but for now -stable still
uses /dev/MAKEDEV.
This commit is contained in:
Josef Karthauser 2001-09-20 13:34:16 +00:00
parent 1a77e80042
commit 8b7c2294ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83724

View file

@ -64,9 +64,11 @@ init_vars() { # OK
case `uname -r` in
5.*)
VN="md"
MAKEDEV="${SRC}/etc/MAKEDEV"
;;
*)
VN="vn"
MAKEDEV="/dev/MAKEDEV"
esac
# Various temporary files and directories.
@ -497,7 +499,7 @@ populate_mfs() {
# XXX-fixme in -current, MAKEDEV is from /usr/src/etc/MAKEDEV
if [ "${NO_DEVFS}" != "" ] ; then
(cd ${MFS_MOUNTPOINT}/dev ; ln -s /dev/MAKEDEV ;
(cd ${MFS_MOUNTPOINT}/dev ; ln -s ${MAKEDEV} ; chmod 555 MAKEDEV ;
./MAKEDEV ${MY_DEVS}; rm MAKEDEV)
fi