Changeset 33147


Ignore:
Timestamp:
02/18/15 02:17:20 (8 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r33146 r33147  
    69426942}
    69436943
    6944 char* getabout()
    6945 {
    6946         char* text = NULL, *tmpstr = NULL, *imgversion = NULL;
    6947         struct dvbdev* dvbnode = dvbdev;
    6948 
    6949         if(isfile(getconfig("imagenamefile", NULL))     != 0)
    6950                 imgversion = readsys(getconfig("imagenamefile", NULL), 1);
    6951         else
    6952                 imgversion = ostrcat("unknown", NULL, 0, 0);
    6953 
    6954         text = ostrcat(_("Image"), ": ", 0, 0);
    6955         text = ostrcat(text, PROGNAME, 1, 0);
    6956         text = ostrcat(text, "\n", 1, 0);
    6957         text = ostrcat(text, _("Version"), 1, 0);
    6958         text = ostrcat(text, ": ", 1, 0);
    6959         text = ostrcat(text, OVERSION, 1, 0);
    6960         text = ostrcat(text, "\n", 1, 0);
    6961         text = ostrcat(text, _("Installed:"), 1, 0);
    6962         text = ostrcat(text, " ", 1, 0);
    6963         text = ostrcat(text, imgversion, 1, 1);
    6964         text = ostrcat(text, "\n", 1, 0);
    6965         text = ostrcat(text, _("Frontcontroller"), 1, 0);
    6966         text = ostrcat(text, ": ", 1, 0);
    6967         tmpstr = readsys("/proc/stb/fp/version", 1);
    6968         text = ostrcat(text, tmpstr, 1, 1);
    6969         text = ostrcat(text, "\n", 1, 0);
    6970         text = ostrcat(text, _("Copyright"), 1, 0);
    6971         text = ostrcat(text, ": ", 1, 0);
    6972         text = ostrcat(text, COPYRIGHT, 1, 0);
    6973         text = ostrcat(text, "\n\n", 1, 0);
    6974                
    6975         while(dvbnode != NULL)
    6976         {
    6977                 if(dvbnode->type == FRONTENDDEV && dvbnode->feinfo != NULL)
    6978                 {
    6979                         text = ostrcat(text, _("Tuner"), 1, 0);
    6980                         text = ostrcat(text, ": ", 1, 0);
    6981                         if(dvbnode->feinfo->name != NULL)
    6982                                 text = ostrcat(text, dvbnode->feinfo->name, 1, 0);
    6983                         else
    6984                                 text = ostrcat(text, _("unknown"), 1, 0);
    6985                         text = ostrcat(text, "\n", 1, 0);
    6986                         text = ostrcat(text, _("Tunertype"), 1, 0);
    6987                         text = ostrcat(text, ": ", 1, 0);
    6988 
    6989                         tmpstr = fegettypestr(dvbnode);
    6990                         text = ostrcat(text, tmpstr, 1, 1);
    6991                         text = ostrcat(text, "\n\n", 1, 0);
    6992                 }
    6993                 dvbnode = dvbnode->next;
    6994         }
    6995        
    6996         tmpstr = readfiletomem("/tmp/.firmware.log", 0);
    6997         text = ostrcat(text, tmpstr, 1, 1);
    6998 
    6999         return text;
    7000 }
    7001 
    70026944char* getimgnamereal()
    70036945{
Note: See TracChangeset for help on using the changeset viewer.