mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-11 20:26:54 -04:00
commit
691791c647
2 files changed
+18
-2
No files matched your search
@@ -287,7 +287,15 @@ $macBases = array(
|
||||
);
|
||||
|
||||
unset($output);
|
||||
$command = "arp -a";
|
||||
// Calling arp without the full path was reported to fail on some systems
|
||||
// Use the builtin unix command "type" to tell us where the command is
|
||||
$command = "type -p arp";
|
||||
$result = exec( escapeshellcmd($command), $output, $status );
|
||||
if ( $status )
|
||||
Fatal( "Unable determine arp path, status is '$status'" );
|
||||
// Now that we know where arp is, call it using the full path
|
||||
$command = $output[0]." -a";
|
||||
unset($output);
|
||||
$result = exec( escapeshellcmd($command), $output, $status );
|
||||
if ( $status )
|
||||
Fatal( "Unable to probe network cameras, status is '$status'" );
|
||||
|
||||
@@ -287,7 +287,15 @@ $macBases = array(
|
||||
);
|
||||
|
||||
unset($output);
|
||||
$command = "arp -a";
|
||||
// Calling arp without the full path was reported to fail on some systems
|
||||
// Use the builtin unix command "type" to tell us where the command is
|
||||
$command = "type -p arp";
|
||||
$result = exec( escapeshellcmd($command), $output, $status );
|
||||
if ( $status )
|
||||
Fatal( "Unable determine arp path, status is '$status'" );
|
||||
// Now that we know where arp is, call it using the full path
|
||||
$command = $output[0]." -a";
|
||||
unset($output);
|
||||
$result = exec( escapeshellcmd($command), $output, $status );
|
||||
if ( $status )
|
||||
Fatal( "Unable to probe network cameras, status is '$status'" );
|
||||
|
||||
Reference in new issue
Block a user