diff options
author | Jacob Moody <moody@posixcafe.org> | 2022-05-28 02:31:26 +0000 |
---|---|---|
committer | Jacob Moody <moody@posixcafe.org> | 2022-05-28 02:31:26 +0000 |
commit | 774529e440cfe570fbaf29e6e5c5c73345aa04a1 (patch) | |
tree | c1987e848a9783a675527ecc3fd1897f603d15fa /sys/src/9/boot | |
parent | 53fbb0515159465421053c3165b1aa9da196aa4d (diff) |
kernel: add /rc to devroot
This makes it much easier to run a rc
program without needing to bind in all of '#s/boot'.
Diffstat (limited to 'sys/src/9/boot')
-rw-r--r-- | sys/src/9/boot/boot.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |