73
#----------------------------------------------------------------------#
if ( $MESH_DEV ne "" )
{
print ("Setting up $MESH_DEV\n");
foreach $cmd (@MESH_SETUP)
{
print "Running: $cmd\n";
`$cmd`;
if ($? != 0)
{
print ("Couldn't execute: $cmd\n $1");
sleep(2);
system($BEEP_FAILURE);
die;
}
}
sleep(2);
system($BEEP_MESH_SETUP);
}
else
{
print ("If you're not setting up a mesh device, why run this file?\n");
system($BEEP_FAILURE);
die;
}
#----------------------------------------------------------------------#
# Configure client device if needed #
#---------------------------------------------------------------------
#
if ( $CLIENT_DEV ne "" )
{
print ("Setting up $CLIENT_DEV as a client interface\n");
foreach $cmd (@CLIENT_SETUP)
{
print "Running: $cmd\n";
`$cmd`;
if ( $? != 0 )
{
print ("Couldn't execute: $cmd\n $1");
sleep(2);
system($BEEP_FAILURE);
die;
}
}
sleep(2);
system($BEEP_CLIENT_SETUP);
}
else
Comentários a estes Manuais