mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
changed: check exist /sbin/ifconfig
git-svn-id: https://svn.fhem.de/fhem/trunk@15378 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
130bd1476c
commit
10ce901934
@ -2677,6 +2677,8 @@ sub SYSMON_getNetworkInfo ($$$) {
|
|||||||
my ($hash, $map, $device) = @_;
|
my ($hash, $map, $device) = @_;
|
||||||
|
|
||||||
if($hash->{helper}->{excludes}{'network'}) {return $map;}
|
if($hash->{helper}->{excludes}{'network'}) {return $map;}
|
||||||
|
|
||||||
|
return $map unless (-e "/sbin/ifconfig");
|
||||||
|
|
||||||
SYSMON_Log($hash, 5, "get $device");
|
SYSMON_Log($hash, 5, "get $device");
|
||||||
my($nName, $nDef) = split(/:/, $device);
|
my($nName, $nDef) = split(/:/, $device);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user