Changeset 43445 for titan/titan


Ignore:
Timestamp:
02/04/19 04:48:13 (5 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/system_update.h

    r43442 r43445  
    3636                char* devicelist = command("cat /proc/diskstats | awk {'print $3'} | grep 'sd[a-z][0-9]'");
    3737#endif
    38                 char* = command("cat /proc/cmdline | sed 's/^.*root=//;s/ .*$//' | sed 's!/dev/!!'");
     38                char* rootpart = command("cat /proc/cmdline | sed 's/^.*root=//;s/ .*$//' | sed 's!/dev/!!'");
    3939
    4040printf("devicelist: %s\n",devicelist);
     
    247247                                                cmd = ostrcat(cmd, " release titannit.dyndns.tv", 1, 0);
    248248
    249                                         if(mode == 2 || mode == 3)
     249                                        if((mode == 2 || mode == 3) && device->ret != NULL && ostrstr(device->ret, "no device found", "no device found") != NULL)
    250250                                        {
    251251                                                // send multiboot device to update.sh
Note: See TracChangeset for help on using the changeset viewer.