From 774529e440cfe570fbaf29e6e5c5c73345aa04a1 Mon Sep 17 00:00:00 2001 From: Jacob Moody Date: Sat, 28 May 2022 02:31:26 +0000 Subject: kernel: add /rc to devroot This makes it much easier to run a rc program without needing to bind in all of '#s/boot'. --- sys/src/9/boot/boot.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/src/9/boot') diff --git a/sys/src/9/boot/boot.c b/sys/src/9/boot/boot.c index 51daee7a0..1aaae6542 100644 --- a/sys/src/9/boot/boot.c +++ b/sys/src/9/boot/boot.c @@ -25,6 +25,7 @@ main(int, char *argv[]) buf[1+read(open("/env/cputype", OREAD|OCEXEC), buf+1, sizeof buf - 6)] = '\0'; strcat(buf, bin); bind(buf, bin, MAFTER); + bind("/root/rc", "/rc", MREPL); bind("/rc/bin", bin, MAFTER); exec("/bin/bootrc", argv); -- cgit v1.2.3