hotsanic |
Subversion Repositories: |
[/] [branches/] [HotSaNIC-0.5.0-jablonecka/] [modules/] [system/] [platform/] [common.pm] - Rev 1
Compare with Previous -
Blame
- Download
package HotSaNICmod::common;
sub version {
($VERSION = '$Revision: 1.2 $') =~ s/.*(\d+\.\d+).*/$1/;
return "common.pm $VERSION";
}
sub configure {
my $num = 0;
foreach (@_) {
($var,$value)=HotSaNICparser::parse_line($_);
if ($var eq "NUMCPU") { $MODARGS{NUMCPU}=$value; }
if ($var eq "SECTIONS") { $MODARGS{SECTIONS}=$value; }
if ($var eq "HOST") { $num++; ($MODARGS{"HOST$num"})=split ",", $value; }
}
return %MODARGS
}
1;
Powered by WebSVN 2.2.1