mirror of https://github.com/schoebel/mars
marsadm: fix bad check
This commit is contained in:
parent
62ce5c0a3b
commit
1012865854
|
@ -1251,10 +1251,7 @@ sub nyi_cmd {
|
|||
}
|
||||
|
||||
sub is_module_loaded {
|
||||
open TEST, "lsmod | grep mars |";
|
||||
my $res = <TEST>;
|
||||
close TEST;
|
||||
return $res;
|
||||
return -d "/proc/sys/mars";
|
||||
}
|
||||
|
||||
sub set_connect_pref_list {
|
||||
|
|
Loading…
Reference in New Issue