Changeset 43441 for titan/titan


Ignore:
Timestamp:
02/04/19 04:16:14 (5 years ago)
Author:
obi
Message:

fix and add debug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/system_update.h

    r43440 r43441  
    3636                char* devicelist = command("cat /proc/diskstats | awk {'print $3'} | grep 'sd[a-z][0-9]'");
    3737#endif
    38                 char* rootpart = command("cat /proc/cmdline | sed 's/^.*root=//;s/ .*$//' | sed 's!/dev/!!'");
     38                char*  = command("cat /proc/cmdline | sed 's/^.*root=//;s/ .*$//' | sed 's!/dev/!!'");
     39
     40printf("devicelist: %s\n",devicelist);
     41printf("rootpart: %s\n",rootpart);
    3942
    4043                if(devicelist != NULL && strlen(devicelist) != 0)
     
    5457                                label = get_label(pch);
    5558#endif
     59printf("label: %s pch: %s\n",label, pch);
     60
    5661                                if(ostrstr(label, "MINI") != NULL || ostrstr(label, "STARTUP") != NULL)
    5762                                {
     
    242247                                                cmd = ostrcat(cmd, " release titannit.dyndns.tv", 1, 0);
    243248
     249                                        if(mode == 2 || mode == 3)
     250                                        {
    244251                                        // send multiboot device to update.sh
     252                                        cmd = ostrcat(cmd, " ", 1, 0);
    245253                                        cmd = ostrcat(cmd, device->ret, 1, 0);
     254                                        }
    246255#else
    247256                                        if(node->imgtype == 1)
Note: See TracChangeset for help on using the changeset viewer.