Files
freebsd/bin
Konstantin Belousov d7338bb491 bin/sh: make it possible to use as interactive init
If the /sbin/init binary is broken somehow, the way out is to set the
loader environment variable init_path to something else.  The most
natural choice would be either /bin/sh or /rescue/sh.  Unfortunately,
this does not work because the init process starts withoud stdin/out
descriptors.

Make it nicer to users by teaching /bin/sh startup code to open standard
descriptors on /dev/console if the shell is run as init.

Reviewed by:	imp, jilles, zlei
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D56536
2026-04-27 04:45:12 +03:00
..
2026-02-11 17:24:46 +01:00
2026-02-18 10:50:20 -05:00
…
…
…
2025-06-20 22:24:10 +00:00
2024-10-14 10:26:17 -07:00
…
…