Changeset 43452 for titan/titan
- Timestamp:
- 02/04/19 07:15:37 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/system_update.h
r43451 r43452 32 32 { 33 33 #ifdef OEBUILD 34 char* devicelist = command("cat /boot/STARTUP* | sed -nr 's/.*root=\\/dev\\/([^\\/]+) rootfstype.*/\ 1/p' | sort -u");34 char* devicelist = command("cat /boot/STARTUP* | sed -nr 's/.*root=\\/dev\\/([^\\/]+) rootfstype.*/\\1/p' | sort -u"); 35 35 #else 36 36 char* devicelist = command("cat /proc/diskstats | awk {'print $3'} | grep 'sd[a-z][0-9]'"); 37 37 #endif 38 38 char* rootpart = command("cat /proc/cmdline | sed 's/^.*root=//;s/ .*$//' | sed 's!/dev/!!'"); 39 40 printf("devicelist: %s\n",devicelist);41 printf("rootpart: %s\n",rootpart);42 39 43 40 if(devicelist != NULL && strlen(devicelist) != 0) … … 57 54 label = get_label(pch); 58 55 #endif 59 printf("label: %s pch: %s\n",label, pch);60 61 56 if(ostrstr(label, "MINI") != NULL || ostrstr(label, "STARTUP") != NULL) 62 57 { … … 252 247 cmd = ostrcat(cmd, " ", 1, 0); 253 248 cmd = ostrcat(cmd, device->ret, 1, 0); 254 cmd = ostrcat(cmd, " ", 1, 0);255 cmd = ostrcat(cmd, device->text, 1, 0);256 cmd = ostrcat(cmd, " ", 1, 0);257 cmd = ostrcat(cmd, device->name, 1, 0);258 249 } 259 250 #else
Note: See TracChangeset
for help on using the changeset viewer.