US Robotics USR2410 Manual de usuario Pagina 84

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 107
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 83
72
# card is set to connect clients
# 2. configure click
# - runs click based on the paramaters in the config file
# - if CLICK_KERNEL = true, runs click-install, otherwise
# click (user space) is ran
# - check to see if the click config file is present or not
#---------------------------------------------------------------------
#
if ( $MESH_DEV =~ /^ath/ )
{
`/usr/local/bin/wlanconfig $MESH_DEV destroy`;
}
# Create the commands for setting up the mesh device
@MESH_SETUP = (
"iwconfig $MESH_DEV mode ad-hoc channel $MESH_CHANNEL essid $MESH_ESSID",
"ifconfig $MESH_DEV inet $MESH_DEVICE_ADDR netmask $MESH_NETMASK",
"ifconfig $MESH_DEV up");
# Add the extra line for creating the atheros device
if ( $MESH_DEV =~ /^ath/ )
{
@MESH_SETUP = ( "/usr/local/bin/wlanconfig $MESH_DEV create wlandev $ATH_WIFI_DEV
wlanmode ibss",
@MESH_SETUP);
}
# If this node holds a wireless card to connect clients, create the setup commands.
if ($CLIENT_DEV ne "")
{
@CLIENT_SETUP = (
"ifconfig $CLIENT_DEV inet $CLIENT_DEVICE_ADDR netmask $CLIENT_NETMASK",
"ifconfig $CLIENT_DEV up");
if ($CLIENT_CHANNEL ne "")
{
@CLIENT_SETUP = ("iwconfig $CLIENT_DEV mode ad-hoc channel $CLIENT_CHANNEL essid
$CLIENT_ESSID",
@CLIENT_SETUP);
}
}
# to start with, lets let 'em know we're running, beep twice:
$date = `date`;
print ("Starting meshstart: $date\n") ;
system ($BEEP_STARTUP);
#----------------------------------------------------------------------#
# Configure mesh device #
Vista de pagina 83
1 2 ... 79 80 81 82 83 84 85 86 87 88 89 ... 106 107

Comentarios a estos manuales

Sin comentarios