• MorphOS Developer
    Piru
    Posts: 524 from 2003/2/24
    From: finland, the l...
    Quote:

    I know in Genisis and Miami you could get it to run a script or program when the stack connected is this possible in MorphOS?

    Well at least in this way:

    in user-startup:
    Code:

    ; BEGIN network-user-startup
    run <>nil: execute s:network-user-startup
    ; END network-user-startup

    Then create s:network-user-startup and have the following in it:
    Code:

    waitforport NETSTACK L=30 ; wait network stack to appear (max 30 secs)
    if not warn
    wait 2 ; give network some time to settle, if apps still fail, raise the value
    ;
    ; *** start whatever stuff you want here ***
    ; ...
    ;
    endif


    [ Edited by Piru on 2010/7/28 17:42 ]
  • »28.07.10 - 14:38
    Profile