[BusyBox] devfs init.c support

bug1 bug1 at netconnect.com.au
Fri Jun 2 17:53:17 UTC 2000


init.c has problems under a devfs kernel as it doesnt understand the new
device names.

traditional name		devfs name
/dev/tty1			/dev/vc/0
/dev/tty2			/dev/vc/1
/dev/tty3			/dev/vc/2
/dev/ttyS0			/dev/tts/0
/dev/ttyS1			/dev/tts/1

There is a devfsd that allows programs that operate using the
traditional device names, but thats a userland program, so it doesnt
startup till after init finishes, and its easier to get devfs to mount
automatically at boot anyway.

The attached patch introduces adds a define for using devfs in
thebusybox.defs.h, and then wrapps the currents /dev/ definitions in
init.c around that define.

I tested it with 2.4.0test1 with devfs support compiled in, and it works
for me, i did also have to change the device names that are contained in
the default ./scripts/inittab, but thats a user thing anyway i guess.


Glenn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: devfs.init.diff
Type: application/octet-stream
Size: 2098 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20000603/ede596b7/attachment.obj 


More information about the busybox mailing list