Changeset 11974


Ignore:
Timestamp:
04/22/09 03:26:29 (4 years ago)
Author:
BrainSlayer
Message:

correct wrong handling

Location:
src/router
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/router/libutils/utils.c

    r11970 r11974  
    430430#elif HAVE_OMNI 
    431431    nvram_set( NVROUTER, "Omni Wifi Router" ); 
     432#elif HAVE_ALFA_BRANDING 
     433    nvram_set( NVROUTER, "WLAN base-station" ); 
     434    if( name ) 
     435        nvram_set( "DD_BOARD2", name ); 
    432436#elif HAVE_MAKSAT 
    433437    if( name ) 
     
    533537        if( !strncmp( gwid, "GW2348", 6 ) ) 
    534538        { 
    535 #if HAVE_ALFA_BRANDING 
    536             setRouter( "WLAN base-station" ); 
    537 #else 
    538539            setRouter( "Avila GW2348-4/2" ); 
    539 #endif 
    540540            return ROUTER_BOARD_GATEWORX; 
    541541        } 
     
    26332633    return 0; 
    26342634#else 
    2635     int use_gpio = 0x00f; 
     2635    int use_gpio = 0x0ff; 
    26362636    int gpio_value; 
    26372637    int enable; 
    26382638    int disable; 
    26392639 
    2640     int power_gpio = 0x00f; 
    2641     int diag_gpio = 0x00f; 
    2642     int dmz_gpio = 0x00f; 
    2643     int connected_gpio = 0x00f; 
    2644     int bridge_gpio = 0x00f; 
    2645     int vpn_gpio = 0x00f; 
    2646     int ses_gpio = 0x00f;       // use for SES1 (Linksys), AOSS (Buffalo) 
    2647     int ses2_gpio = 0x00f; 
    2648     int wlan_gpio = 0x00f;      // use this only if wlan led is not controlled by hardware! 
    2649     int usb_gpio = 0x00f; 
    2650     int sec0_gpio = 0x00f;      // security leds, wrt600n 
    2651     int sec1_gpio = 0x00f; 
     2640    int power_gpio = 0x0ff; 
     2641    int diag_gpio = 0x0ff; 
     2642    int dmz_gpio = 0x0ff; 
     2643    int connected_gpio = 0x0ff; 
     2644    int bridge_gpio = 0x0ff; 
     2645    int vpn_gpio = 0x0ff; 
     2646    int ses_gpio = 0x0ff;       // use for SES1 (Linksys), AOSS (Buffalo) 
     2647    int ses2_gpio = 0x0ff; 
     2648    int wlan_gpio = 0x0ff;      // use this only if wlan led is not controlled by hardware! 
     2649    int usb_gpio = 0x0ff; 
     2650    int sec0_gpio = 0x0ff;      // security leds, wrt600n 
     2651    int sec1_gpio = 0x0ff; 
    26522652    int v1func = 0; 
    26532653 
  • src/router/services/sysinit/sysinit-gateworx.c

    r11970 r11974  
    145145    time_t tm = 0; 
    146146 
    147     eval( "ledtool", "4", "1" );        // blink the led 4 times 
     147    eval( "ledtool", "1", "1" );        // blink the led 4 times 
    148148    unlink( "/etc/nvram/.lock" ); 
    149149    cprintf( "sysinit() proc\n" ); 
Note: See TracChangeset for help on using the changeset viewer.