mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
2186e3b79a
* Where shebangs had no flags, updated them to use /usr/bin/env for cross-platform compatibility Updated daily.sh to support FreeBSD (su has different args, replaced with sudo when not on linux) * Added myself to AUTHORD.md as per contributor guidelines * Set all platforms to use sudo rather than su Re-added missing arguments to sudo
22 lines
253 B
Perl
22 lines
253 B
Perl
#!/usr/bin/env perl
|
|
|
|
sub getfiles {
|
|
|
|
opendir(DIR,".");
|
|
|
|
while($file = readdir(DIR)) {
|
|
|
|
if($file !~ /^\./) {
|
|
|
|
foreach $all ($file) {
|
|
|
|
system("snmpttconvertmib --in=$all --out=/etc/snmp/snmptt-d.conf");
|
|
print "$all\n";
|
|
}
|
|
}
|
|
}
|
|
closedir(DIR);
|
|
}
|
|
|
|
&getfiles;
|