1 | 17 | simandl | package HotSaNICmod::common; |
2 | | | |
3 | | | sub configure { |
4 | | | my $num=0; |
5 | | | foreach (@_) { |
6 | | | ($var,$value)=HotSaNICparser::parse_line($_); |
7 | | | if ($var eq "IWCONFIG") { $MODARGS{IWCONFIG}=$value; } |
8 | | | if ($var eq "IWLIST") { $MODARGS{IWLIST}=$value; } |
9 | | | if ($var eq "HOSTAP") { $MODARGS{HOSTAP}=$value; } |
10 | | | if ($var eq "IFACE") { |
11 | | | my ($device,$descr)=split(/,/,$value); |
12 | | | $MODARGS{"IFACE:$device"}=$descr; |
13 | | | } |
14 | | | if ($var eq "MAC") { |
15 | | | my ($dev,$mac,$macdescr)=split(/,/,$value); |
16 | | | $MODARGS{"MAC,$dev,$mac"}=$macdescr; |
17 | | | } |
18 | | | } |
19 | | | return %MODARGS; |
20 | | | } |
21 | | | 1; |