Changeset 3969cd92c20f6b1f8a56ea1362617fe257643ac5

Show
Ignore:
Timestamp:
11/02/09 12:40:51 (3 years ago)
Author:
Erwan Velu <erwan.velu@…>
Children:
eed4119f07af14cb24ec3ae4e9678dbeb5de80de
Parents:
291f0542a26110868069d9f92d7d71c9974e28ff, ad501c9ca99dad2f52af62399c3ff7da9bfe09b5
git-committer:
Erwan Velu <erwan.velu@free.fr> / 2009-11-02T13:40:51Z+0100
Message:

Merge remote branch 'pam/hdt-0.3.5'

Location:
com32/hdt
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • com32/hdt/hdt-cli-hdt.c

    r291f05 r3969cd  
    253253} 
    254254 
     255/** 
     256 * do_reboot - reboot the system 
     257 **/ 
     258static void do_reboot(int argc __unused, char** argv __unused, 
     259                          struct s_hardware *hardware) 
     260{ 
     261    /* Use specific syslinux call if needed */ 
     262    if (issyslinux()) 
     263        return runsyslinuxcmd(hardware->reboot_label); 
     264    else 
     265        return csprint(hardware->reboot_label, 0x07); 
     266} 
     267 
    255268/* Default hdt mode */ 
    256269struct cli_callback_descr list_hdt_default_modules[] = { 
     
    270283                .name = CLI_MENU, 
    271284                .exec = goto_menu, 
     285        }, 
     286        { 
     287                .name = CLI_REBOOT, 
     288                .exec = do_reboot, 
    272289        }, 
    273290        { 
  • com32/hdt/hdt-cli.h

    rf8ac66 rad501c  
    4949#define CLI_EXIT "exit" 
    5050#define CLI_HELP "help" 
     51#define CLI_REBOOT "reboot" 
    5152#define CLI_SHOW "show" 
    5253#define CLI_SET "set" 
  • com32/hdt/hdt-common.c

    r47ac91 rd98e62  
    7373        sizeof(hardware->memtest_label)); 
    7474      convert_isolinux_filename(hardware->memtest_label,hardware); 
     75    } else if (!strncmp(argv[i], "reboot=", 7)) { 
     76      strncpy(hardware->reboot_label, argv[i] + 7, 
     77        sizeof(hardware->reboot_label)); 
     78      convert_isolinux_filename(hardware->reboot_label,hardware); 
    7579    } 
    7680  } 
     
    134138         sizeof hardware->modules_alias_path); 
    135139  memset(hardware->memtest_label, 0, sizeof hardware->memtest_label); 
     140  memset(hardware->reboot_label, 0, sizeof hardware->reboot_label); 
    136141  strcat(hardware->pciids_path, "pci.ids"); 
    137142  strcat(hardware->modules_pcimap_path, "modules.pcimap"); 
    138143  strcat(hardware->modules_alias_path, "modules.alias"); 
    139144  strcat(hardware->memtest_label, "memtest"); 
     145  strcat(hardware->reboot_label, "reboot.c32"); 
    140146} 
    141147 
  • com32/hdt/hdt-common.h

    r079f92 rd98e62  
    163163  char pciids_path[255]; 
    164164  char memtest_label[255]; 
     165  char reboot_label[255]; 
    165166}; 
    166167 
  • com32/hdt/hdt-menu-about.c

    r51148f r291f05  
    4040  set_menu_pos(SUBMENU_Y, SUBMENU_X); 
    4141 
    42   snprintf(buffer, sizeof buffer, "Product     : %s", PRODUCT_NAME); 
     42  snprintf(buffer, sizeof buffer, "Product        : %s", PRODUCT_NAME); 
    4343  snprintf(statbuffer, sizeof statbuffer, "Product : %s", PRODUCT_NAME); 
    4444  add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); 
    4545  menu->items_count++; 
    4646 
    47   snprintf(buffer, sizeof buffer, "Version     : %s", VERSION); 
    48   snprintf(statbuffer, sizeof statbuffer, "Version : %s", VERSION); 
     47  snprintf(buffer, sizeof buffer, "Version        : %s (%s)", VERSION, CODENAME); 
     48  snprintf(statbuffer, sizeof statbuffer, "Version : %s (%s)", VERSION,CODENAME); 
    4949  add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); 
    5050  menu->items_count++; 
    5151 
    52   snprintf(buffer, sizeof buffer, "Author      : %s", AUTHOR); 
    53   snprintf(statbuffer, sizeof statbuffer, "Author  : %s", AUTHOR); 
     52  snprintf(buffer, sizeof buffer, "Project Leader : %s", AUTHOR); 
     53  snprintf(statbuffer, sizeof statbuffer, "Project Leader  : %s", AUTHOR); 
    5454  add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); 
    5555  menu->items_count++; 
    5656 
    57   snprintf(buffer, sizeof buffer, "Contact     : %s", CONTACT); 
     57  snprintf(buffer, sizeof buffer, "Contact        : %s", CONTACT); 
    5858  snprintf(statbuffer, sizeof statbuffer, "Contact : %s", CONTACT); 
     59  add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); 
     60  menu->items_count++; 
     61 
     62  snprintf(buffer, sizeof buffer, "Core Developer : %s", CORE_DEVELOPER); 
     63  snprintf(statbuffer, sizeof statbuffer, "Core Developer  : %s", CORE_DEVELOPER); 
    5964  add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); 
    6065  menu->items_count++; 
     
    6267  char *contributors[NB_CONTRIBUTORS] = CONTRIBUTORS; 
    6368  for (int c=0; c<NB_CONTRIBUTORS; c++) { 
    64    snprintf(buffer, sizeof buffer, "Contributor : %s", contributors[c]); 
     69   snprintf(buffer, sizeof buffer, "Contributor    : %s", contributors[c]); 
    6570   snprintf(statbuffer, sizeof statbuffer, "Contributor : %s", contributors[c]); 
    6671   add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); 
  • com32/hdt/hdt-menu.c

    ra4dfd1 rd98e62  
    293293  add_item("<A>bout", "About Menu", OPT_SUBMENU, NULL, 
    294294     hdt_menu->about_menu.menu); 
     295  add_item("<R>eboot", "Reboot", OPT_RUN, hardware->reboot_label, 0); 
    295296  add_item("E<x>it","Exit", OPT_EXITMENU,NULL,0); 
    296297  hdt_menu->main_menu.items_count++; 
  • com32/hdt/hdt.c

    r821b54 r291f05  
    4949  struct s_hardware hardware; 
    5050 
    51   snprintf(version_string, sizeof version_string, "%s %s", 
    52            PRODUCT_NAME,VERSION); 
     51  snprintf(version_string, sizeof version_string, "%s %s (%s)", 
     52           PRODUCT_NAME,VERSION, CODENAME); 
    5353 
    5454  /* Opening the Syslinux console */ 
  • com32/hdt/hdt.h

    r4dc540 r291f05  
    3232#define PRODUCT_NAME "Hardware Detection Tool" 
    3333#define AUTHOR "Erwan Velu" 
     34#define CORE_DEVELOPER "Pierre-Alexandre Meyer" 
    3435#define CONTACT "hdt@zytor.com" 
    35 #define VERSION "0.3.5-pre1" 
    36 #define NB_CONTRIBUTORS 3 
    37 #define CONTRIBUTORS {"Pierre-Alexandre Meyer", "Sebastien Gonzalve", "Gert Hulselmans"} 
     36#define VERSION "0.3.5-pre2" 
     37#define CODENAME "mojito" 
     38#define NB_CONTRIBUTORS 2  
     39#define CONTRIBUTORS {"Sebastien Gonzalve", "Gert Hulselmans"} 
    3840 
    3941#define ATTR_PACKED __attribute__((packed))