Modifying init to create /dev/console ?

Mike Frysinger vapier at gentoo.org
Thu Mar 1 01:26:05 UTC 2007


On Wednesday 28 February 2007, Denis Vlasenko wrote:
> fix_dev.sh:
>
> #!/bin/sh
> mknod ... /dev/....
> exec /sbin/init "$@"
>
> No hacking in init! :)
>
> Do you see any problems with this approach?

you should add redirects so that /sbin/init opens /dev/console for its stdin 
and stdout ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070228/9669d51e/attachment-0002.pgp 


More information about the busybox mailing list