~pixelherodev/ANTS

6f66f4be3bb8baf906c2bef49645c19b5347df65 — Noam Preil 11 months ago d63998c
use plan9rc
3 files changed, 6 insertions(+), 0 deletions(-)

M sys/src/9/boot/boot.c
M sys/src/9/pc/pc
M sys/src/9/pc64/pc64
M sys/src/9/boot/boot.c => sys/src/9/boot/boot.c +4 -0
@@ 8,6 8,7 @@ void
main(int, char *argv[])
{
	char buf[32];
	char bootcmd[64];

	/* setup the boot namespace */
	bind("/boot", bin, MAFTER);


@@ 27,6 28,9 @@ main(int, char *argv[])
	bind(buf, bin, MAFTER);
	bind("/rc/bin", bin, MAFTER);

	bootcmd[read(open("/env/bootcmd", OREAD|OCEXEC), bootcmd, sizeof bootcmd - 1)] = '\0';
	if(strcmp(bootcmd, "plan9rc")==0)
		exec("/boot/plan9rc", argv);
	exec("/bin/bootrc", argv);
Err:
	errstr(buf, sizeof buf);

M sys/src/9/pc/pc => sys/src/9/pc/pc +1 -0
@@ 165,6 165,7 @@ port

bootdir
	/$objtype/bin/paqfs
	/sys/src/ants/bootdir.extras/plan9rc
	/$objtype/bin/auth/factotum
	bootfs.paq
	boot

M sys/src/9/pc64/pc64 => sys/src/9/pc64/pc64 +1 -0
@@ 165,3 165,4 @@ bootdir
	/$objtype/bin/auth/factotum
	bootfs.paq
	boot
	/sys/src/ants/bootdir.extras/plan9rc