Changeset 2953


Ignore:
Timestamp:
Aug 25, 2010, 7:11:44 PM (9 years ago)
Author:
rorothetroll
Message:

added Seagate FreeAgent? DockStar? support. thanks Robby

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r2891 r2953  
    3030    elseif (OSCAM_SYSTEM_NAME MATCHES "NSLU2")
    3131        set (OSCamOperatingSystem "SlugOS")
    32             set (CS_OS_HW "nslu2")
    33             set (CS_OS_SYS "linux")
     32    set (CS_OS_HW "nslu2")
     33    set (CS_OS_SYS "linux")
     34    elseif (OSCAM_SYSTEM_NAME MATCHES "Dockstar")
     35        set (OSCamOperatingSystem "OpenWRT")
     36        set (CS_OS_HW "dockstar")
     37        set (CS_OS_SYS "linux")
    3438    elseif (OSCAM_SYSTEM_NAME MATCHES "Fonera2")
    3539        set (OSCamOperatingSystem "Fonera2")
     
    154158    add_definitions ("-DOS_LINUX -DARM")
    155159    set (DEFAULT_CS_CONFDIR "/var/etc")
     160elseif (OSCamOperatingSystem MATCHES "OpenWRT")
     161    if (CS_OS_HW MATCHES "dockstar")
     162        add_definitions ("-DOS_LINUX -DARM -DDOCKSTAR")
     163    else (CS_OS_HW MATCHES "dockstar")
     164        add_definitions ("-DOS_LINUX -DARM")
     165    endif (CS_OS_HW MATCHES "dockstar")
     166    set (DEFAULT_CS_CONFDIR "/usr/oscam")
    156167elseif (OSCamOperatingSystem MATCHES "Fonera2")
    157168    add_definitions ("-DOS_LINUX -DMIPSEL -DUCLIBC")
     
    436447    target_link_libraries ( ${exe_name} dl)
    437448elseif (OSCamOperatingSystem MATCHES "SlugOS")
     449elseif (OSCamOperatingSystem MATCHES "OpenWRT")
    438450elseif (OSCamOperatingSystem MATCHES "Fonera2")
    439451elseif (OSCamOperatingSystem MATCHES "agv2+w")
     
    495507    add_definitions ("-O2 -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -m32 -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk")
    496508elseif (OSCAM_SYSTEM_NAME MATCHES "NSLU2")
     509    add_definitions ("-O2 -Winline -Wall -finline-functions -fomit-frame-pointer")
     510elseif (OSCAM_SYSTEM_NAME MATCHES "Dockstar")
    497511    add_definitions ("-O2 -Winline -Wall -finline-functions -fomit-frame-pointer")
    498512else (OSCamOperatingSystem MATCHES "Mac OS X")
  • trunk/oscam.c

    r2949 r2953  
    340340#ifdef CS_LED
    341341              cs_switch_led(LED1B, LED_OFF);
    342               cs_switch_led(LED1A, LED_ON);
    343342              cs_switch_led(LED2, LED_OFF);
    344343              cs_switch_led(LED3, LED_OFF);
     344              cs_switch_led(LED1A, LED_ON);
    345345#endif
    346346              if (cfg->pidfile != NULL) {
     
    32093209        FILE *f;
    32103210
    3211         switch(led){
    3212         case LED1A:snprintf(ledfile, 255, "/sys/class/leds/nslu2:red:status/brightness");
    3213         break;
    3214         case LED1B:snprintf(ledfile, 255, "/sys/class/leds/nslu2:green:ready/brightness");
    3215         break;
    3216         case LED2:snprintf(ledfile, 255, "/sys/class/leds/nslu2:green:disk-1/brightness");
    3217         break;
    3218         case LED3:snprintf(ledfile, 255, "/sys/class/leds/nslu2:green:disk-2/brightness");
    3219         break;
    3220         }
     3211        #ifdef DOCKSTAR
     3212            switch(led){
     3213            case LED1A:snprintf(ledfile, 255, "/sys/class/leds/dockstar:orange:misc/brightness");
     3214            break;
     3215            case LED1B:snprintf(ledfile, 255, "/sys/class/leds/dockstar:green:health/brightness");
     3216            break;
     3217            case LED2:snprintf(ledfile, 255, "/sys/class/leds/dockstar:green:health/brightness");
     3218            break;
     3219            case LED3:snprintf(ledfile, 255, "/sys/class/leds/dockstar:orange:misc/brightness");
     3220            break;
     3221            }
     3222        #else       
     3223            switch(led){
     3224            case LED1A:snprintf(ledfile, 255, "/sys/class/leds/nslu2:red:status/brightness");
     3225            break;
     3226            case LED1B:snprintf(ledfile, 255, "/sys/class/leds/nslu2:green:ready/brightness");
     3227            break;
     3228            case LED2:snprintf(ledfile, 255, "/sys/class/leds/nslu2:green:disk-1/brightness");
     3229            break;
     3230            case LED3:snprintf(ledfile, 255, "/sys/class/leds/nslu2:green:disk-2/brightness");
     3231            break;
     3232            }
     3233        #endif
    32213234
    32223235        if (!(f=fopen(ledfile, "w"))){
Note: See TracChangeset for help on using the changeset viewer.