Changeset 43438 for titan/titan


Ignore:
Timestamp:
02/04/19 02:49:32 (5 years ago)
Author:
obi
Message:

update enable usb online/local flashing ned for multibboot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/system_update.h

    r43254 r43438  
    3131        if(mode == 2 || mode == 3)
    3232        {
     33#ifdef OEBUILD
     34                char* devicelist = command("cat /boot/STARTUP* | sed -nr 's#.*root=/dev/([^/]+) rootfstype.*#\1#p' | sort -u");
     35#else
    3336                char* devicelist = command("cat /proc/diskstats | awk {'print $3'} | grep 'sd[a-z][0-9]'");
     37#endif
    3438                char* rootpart = command("cat /proc/cmdline | sed 's/^.*root=//;s/ .*$//' | sed 's!/dev/!!'");
    3539
     
    4549                        {
    4650                                count += 1;
     51#ifdef OEBUILD
     52                                label= ostrcat("STARTUP_", oitoa(count), 0, 1);
     53#else
    4754                                label = get_label(pch);
    48 
     55#endif
    4956                                if(ostrstr(label, "MINI") != NULL)
    5057                                {
     
    234241                                        else
    235242                                                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);
    236246#else
    237247                                        if(node->imgtype == 1)
Note: See TracChangeset for help on using the changeset viewer.