Load pill directly from U2_LIB.

This commit is contained in:
C. Guy Yarvin 2014-11-02 08:32:34 -08:00
parent e7b553a288
commit b1b55a6065
2 changed files with 6 additions and 0 deletions

4
g/e.c
View File

@ -978,8 +978,12 @@ u3_ce_boot(c3_o nuu_o, c3_o bug_o, c3_c* cpu_c)
*/
if ( u3_so(nuu_o) ) {
c3_c pas_c[2049];
struct stat buf_u;
snprintf(pas_c, 2048, "%s/.urb/urbit.pill", cpu_c);
if ( -1 == stat(pas_c, &buf_u) ) {
snprintf(pas_c, 2048, "%s/urbit.pill", U2_LIB);
}
printf("boot: loading %s\r\n", pas_c);
u3_cv_make(pas_c);

View File

@ -302,6 +302,7 @@ _sist_home()
{
snprintf(ful_c, 2048, "cp %s/urbit.pill %s/.urb",
U2_LIB, u3_Host.cpu_c);
printf("%s\r\n", ful_c);
if ( 0 != system(ful_c) ) {
uL(fprintf(uH, "could not %s\n", ful_c));
u3_lo_bail();
@ -314,6 +315,7 @@ _sist_home()
if ( u3_Host.ops_u.imp_c ) {
snprintf(ful_c, 2048, "cp -r %s/zod %s/%s",
U2_LIB, u3_Host.cpu_c, u3_Host.ops_u.imp_c+1);
printf("%s\r\n", ful_c);
if ( 0 != system(ful_c) ) {
uL(fprintf(uH, "could not %s\n", ful_c));
u3_lo_bail();