Files
librenms-librenms/mibs/process.pl
T
Jonathan Price 2186e3b79a fix: Update Shebangs and daily.sh for FreeBSD compatibility (#6413)
* 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
2017-04-17 20:14:23 -05:00

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;