boot.c.ed - vx32 - Local 9vx git repository for patches.
 (HTM) git clone git://r-36.net/vx32
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       boot.c.ed (391B)
       ---
            1 /^$/a
            2 char*        localroot;
            3 .
            4 /fd = \(\*mp->connect\)/a
            5         if(localroot){
            6                 bind(localroot, "/", MAFTER);
            7                 srvcreate("boot", fd);
            8                 goto Init;
            9         }
           10 .
           11 /cmd = getenv/i
           12 Init:
           13         cpuflag = (strcmp(getenv("service"), "cpu") == 0);
           14 .
           15 /if\(cmd == nil\)/ a
           16                 sprint(cmdbuf, "/%s/init", cputype);
           17                 if(stat(cmdbuf, statbuf, sizeof statbuf) < 0)
           18                         sprint(cmdbuf, "/%s/bin/rc", cputype);
           19                 else
           20 .
           21 +;/;$/ s/^/        /