mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-14 05:46:35 +00:00
fhem.pl: change DevIo path in require (Forum #110125)
git-svn-id: https://svn.fhem.de/fhem/trunk@21661 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
37ad4f245b
commit
2a512929a6
@ -67,8 +67,9 @@ foreach my $row (split("\n", $fList)) {
|
|||||||
die("Cant svnlook cat $fName:$!\n");
|
die("Cant svnlook cat $fName:$!\n");
|
||||||
|
|
||||||
while(my $l = <FILE>) {
|
while(my $l = <FILE>) {
|
||||||
$hasId = ($l =~ /#.*?\$Id(?:\:.+)?\$/);
|
$hasId = ($l =~ /#.*?\$Id(?:\:.+)?\$/) if(!$hasId);
|
||||||
last if($hasId);
|
err $fName, "DevIo must be loaded via use (Forum #110125)."
|
||||||
|
if($l =~ m/require.*modpath.*DevIo.pm/);
|
||||||
}
|
}
|
||||||
close(FILE);
|
close(FILE);
|
||||||
err $fName, "file has no SVN Id as comment" unless($hasId);
|
err $fName, "file has no SVN Id as comment" unless($hasId);
|
||||||
|
@ -5585,7 +5585,7 @@ fhemFork()
|
|||||||
if($h->{DBH} && $h->{TYPE} eq 'DbLog'); #Forum #43271
|
if($h->{DBH} && $h->{TYPE} eq 'DbLog'); #Forum #43271
|
||||||
TcpServer_Close($h) if($h->{SERVERSOCKET});
|
TcpServer_Close($h) if($h->{SERVERSOCKET});
|
||||||
if($h->{DeviceName}) {
|
if($h->{DeviceName}) {
|
||||||
require "$attr{global}{modpath}/FHEM/DevIo.pm";
|
require "DevIo.pm";
|
||||||
DevIo_CloseDev($h,1);
|
DevIo_CloseDev($h,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user