mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-15 13:17:41 +03:00
Load pill directly from U2_LIB.
This commit is contained in:
parent
e7b553a288
commit
b1b55a6065
4
g/e.c
4
g/e.c
@ -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);
|
||||
|
||||
|
2
v/sist.c
2
v/sist.c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user