Changeset 45188
- Timestamp:
- 01/21/21 15:57:40 (3 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/global.h
r45185 r45188 8437 8437 debug(40, "addchoicebox: device=%s, label=%s showname=%s pic=%s", pch, label, showname, pic); 8438 8438 #endif 8439 8440 #ifdef OEBUILD 8441 cmd = ostrcat("cat /autofs/", pchroot, 0, 0); 8442 #else 8443 cmd = ostrcat("cat /autofs/", pch, 0, 0); 8444 #endif 8445 cmd = ostrcat(cmd, "/etc", 1, 0); 8446 8439 8447 // need switch label > showname from system_update.h function 8440 addmenulist(&mlist, showname, label, pic, 0, 0); 8448 if(file_exist(cmd == 1) 8449 addmenulist(&mlist, showname, label, pic, 0, 0); 8450 8451 free(cmd), cmd = NULL; 8441 8452 8442 8453 free(cmd), cmd = NULL; -
titan/titan/system_update.h
r45183 r45188 124 124 debug(40, "addchoicebox: device=%s, label=%s showname=%s", pchroot, label, showname); 125 125 #endif 126 addchoicebox(device, label, _(showname)); 126 free(issue), issue = NULL; 127 128 cmd = ostrcat("flashdev=$(cat /boot/", label, 0, 0); 129 cmd = ostrcat(cmd, " | sed -nr 's#.*root=/dev/([^/]+)#}\1#p' | awk '{ print $1 }'); cat /proc/diskstats | awk {'print $3'} | grep 'mmcblk0[a-z][0-9]\\|sd[a-z][0-9]' | grep -c $flashdev$", 1, 0); 130 printf("cmd: %s\n", cmd); 131 132 if(ostrcmp(string_newline(command(cmd)), "1") == 0) 133 addchoicebox(device, label, _(showname)); 127 134 128 135 free(cmd), cmd = NULL;
Note: See TracChangeset
for help on using the changeset viewer.