5 #include "../boot/boot.h"
8 main(int argc, char *argv[])
13 fmtinstall('r', errfmt);
15 bind("#c", "/dev", MREPL);
16 open("/dev/cons", OREAD);
17 open("/dev/cons", OWRITE);
18 open("/dev/cons", OWRITE);
20 * init will reinitialize its namespace.
21 * #ec gets us plan9.ini settings (*var variables).
23 bind("#ec", "/env", MREPL);
24 bind("#e", "/env", MBEFORE|MCREATE);
25 bind("#s", "/srv", MREPL|MCREATE);
26 bind("#σ", "/shr", MREPL);
31 print("argc=%d\n", argc);
32 for(i = 0; i < argc; i++)
33 print("%p %s ", argv[i], argv[i]);
38 readfile("#e/cputype", cputype, sizeof(cputype));
40 /* setup the boot namespace */
41 bind("/boot", "/bin", MAFTER);
42 run("/bin/paqfs", "-qa", "-c", "8", "-m" "/root", "/boot/bootfs.paq", nil);
43 bind("/root", "/", MAFTER);
44 snprint(buf, sizeof(buf), "/%s/bin", cputype);
45 bind(buf, "/bin", MAFTER);
46 bind("/rc/bin", "/bin", MAFTER);
47 exec("/bin/bootrc", argv);