Ignore:
Timestamp:
May 10, 2009, 12:30:09 PM (16 years ago)
Author:
george
Message:

Opraveno: Skripty pro generování nastavení směrovačů.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/system/generators/nat_routerboard.php

    r208 r213  
    1717  while($Interface = $DbResult2->fetch_assoc())
    1818  {
    19     $Name = $Interface['DeviceName'].'-'.$Interface['Name'];
     19    $Name = $Interface['DeviceName'];
     20    if($Interface['Name'] != '') $Name .= '-'.$Interface['Name'];
    2021    $Name = RouterOSIdent($Name);
    2122    echo($Name.'('.$Interface['LocalIP'].'), ');
     
    4748
    4849$Commands = addslashes(implode(';', $Commands));
    49 $Command = '/usr/bin/ssh -l '.$Config['MainRouter']['UserName'].' -i id_dsa '.$Config['MainRouter']['HostName'].' "'.$Commands.'"';
     50$Command = '/usr/bin/ssh -o ConnectTimeout=5 -l '.$Config['MainRouter']['UserName'].' -i id_dsa '.$Config['MainRouter']['HostName'].' "'.$Commands.'"';
    5051$Output = array();
    5152//echo($Command."\n");
Note: See TracChangeset for help on using the changeset viewer.