jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [trunk/] [modules/] [bgp/] [platform/] [common.pm] - Rev 36 Go to most recent revision

Compare with Previous - Blame - Download


package HotSaNICmod::common;

sub configure {
        my $num=0;
        foreach (@_) {
                ($var,$value)=HotSaNICparser::parse_line($_);
                if ($var eq "IWCONFIG") { $MODARGS{IWCONFIG}=$value; }
                if ($var eq "IWLIST") { $MODARGS{IWLIST}=$value; }
                if ($var eq "HOSTAP") { $MODARGS{HOSTAP}=$value; }
                if ($var eq "IFACE") {
                        my ($device,$descr)=split(/,/,$value);
                        $MODARGS{"IFACE:$device"}=$descr;
                }
                if ($var eq "MAC") {
                        my ($dev,$mac,$macdescr)=split(/,/,$value);
                        $MODARGS{"MAC,$dev,$mac"}=$macdescr;
                }
        }
        return %MODARGS;
}
1;

Powered by WebSVN 2.2.1