Changeset 43438 for titan/titan
- Timestamp:
- 02/04/19 02:49:32 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/system_update.h
r43254 r43438 31 31 if(mode == 2 || mode == 3) 32 32 { 33 #ifdef OEBUILD 34 char* devicelist = command("cat /boot/STARTUP* | sed -nr 's#.*root=/dev/([^/]+) rootfstype.*#\1#p' | sort -u"); 35 #else 33 36 char* devicelist = command("cat /proc/diskstats | awk {'print $3'} | grep 'sd[a-z][0-9]'"); 37 #endif 34 38 char* rootpart = command("cat /proc/cmdline | sed 's/^.*root=//;s/ .*$//' | sed 's!/dev/!!'"); 35 39 … … 45 49 { 46 50 count += 1; 51 #ifdef OEBUILD 52 label= ostrcat("STARTUP_", oitoa(count), 0, 1); 53 #else 47 54 label = get_label(pch); 48 55 #endif 49 56 if(ostrstr(label, "MINI") != NULL) 50 57 { … … 234 241 else 235 242 cmd = ostrcat(cmd, " release titannit.dyndns.tv", 1, 0); 243 244 // send multiboot device to update.sh 245 cmd = ostrcat(cmd, device->ret, 1, 0); 236 246 #else 237 247 if(node->imgtype == 1)
Note: See TracChangeset
for help on using the changeset viewer.