/[smecontribs]/rpms/smeserver-coova-chilli/contribs7/smeserver-coova-chilli-0.2-guest_access2.patch
ViewVC logotype

Contents of /rpms/smeserver-coova-chilli/contribs7/smeserver-coova-chilli-0.2-guest_access2.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sun Nov 23 04:57:56 2008 UTC (15 years, 11 months ago) by slords
Branch: MAIN
Changes since 1.1: +0 -0 lines
FILE REMOVED
Part of epel

1 --- smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/raddb/users/40chilli.guest_access2 2008-09-05 12:26:24.000000000 +0200
2 +++ smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/raddb/users/40chilli 2008-09-05 12:33:07.000000000 +0200
3 @@ -1,23 +1,23 @@
4 {
5
6 -if ((($chilli{'status'} || 'disabled) eq 'enabled') &&
7 - ($chilli{'guestAccess'} || disabled) eq 'enabled'){
8 - my $downlink = $chilli{'guestDownLink'} || '400';
9 - my $uplink = $chilli{'guestUpLink'} || '64';
10 - $downlink = $downlink * 1000;
11 - $uplink = $uplink * 1000;
12 - $OUT =<<END;
13 +if ((($chilli{'status'} || 'disabled') eq 'enabled') &&
14 + ($chilli{'guestAccess'} || 'disabled') eq 'enabled'){
15 + my $downlink = $chilli{'guestDownLink'} || '400';
16 + my $uplink = $chilli{'guestUpLink'} || '64';
17 + $downlink = $downlink * 1000;
18 + $uplink = $uplink * 1000;
19 + $OUT =<<"END";
20
21 -guest NAS-Identify == "chilli", Auth-Type: = Local User-Password == 'guest'
22 +guest NAS-Identifier == "chilli", Auth-Type := Local, User-Password == 'guest'
23 WISPr-Bandwidth-Max-Down = $downlink, WISPr-Bandwidth-Max-Up = $uplink
24 -
25 END
26 +}
27
28 if (($chilli{'status'} || 'disabled') eq 'enabled'){
29 - $OUT =<<END;
30 + $OUT .=<<END;
31
32 DEFAULT Group == "chilli", NAS-Identifier == "chilli", Auth-Type := unix
33 -# WISPr-Bandwidth-Max-Down = 512000, WISPr-Bandwidth-Max-Up = 128000
34 +# WISPr-Bandwidth-Max-Down = 512000, WISPr-Bandwidth-Max-Up = 128000
35
36 DEFAULT Group != "chilli", NAS-Identifier == "chilli", Auth-Type := Reject
37 Reply-Message = "Your are not member of the allowed group"
38 @@ -26,3 +26,4 @@
39 }
40 }
41
42 +

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed