1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-coova-chilli-0.2/root/etc/e-smith/db/configuration/defaults/chilli/guestDownLink mezzanine_patched_smeserver-coova-chilli-0.2/root/etc/e-smith/db/configuration/defaults/chilli/guestDownLink |
2 |
|
|
--- smeserver-coova-chilli-0.2/root/etc/e-smith/db/configuration/defaults/chilli/guestDownLink 1970-01-01 01:00:00.000000000 +0100 |
3 |
|
|
+++ mezzanine_patched_smeserver-coova-chilli-0.2/root/etc/e-smith/db/configuration/defaults/chilli/guestDownLink 2008-09-02 17:58:37.000000000 +0200 |
4 |
|
|
@@ -0,0 +1 @@ |
5 |
|
|
+400 |
6 |
|
|
diff -Nur -x '*.orig' -x '*.rej' smeserver-coova-chilli-0.2/root/etc/e-smith/db/configuration/defaults/chilli/guestUpLink mezzanine_patched_smeserver-coova-chilli-0.2/root/etc/e-smith/db/configuration/defaults/chilli/guestUpLink |
7 |
|
|
--- smeserver-coova-chilli-0.2/root/etc/e-smith/db/configuration/defaults/chilli/guestUpLink 1970-01-01 01:00:00.000000000 +0100 |
8 |
|
|
+++ mezzanine_patched_smeserver-coova-chilli-0.2/root/etc/e-smith/db/configuration/defaults/chilli/guestUpLink 2008-09-02 17:58:46.000000000 +0200 |
9 |
|
|
@@ -0,0 +1 @@ |
10 |
|
|
+64 |
11 |
|
|
diff -Nur -x '*.orig' -x '*.rej' smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/raddb/users/40chilli mezzanine_patched_smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/raddb/users/40chilli |
12 |
|
|
--- smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/raddb/users/40chilli 2008-09-02 13:28:01.000000000 +0200 |
13 |
|
|
+++ mezzanine_patched_smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/raddb/users/40chilli 2008-09-02 18:01:44.000000000 +0200 |
14 |
|
|
@@ -2,14 +2,18 @@ |
15 |
|
|
|
16 |
|
|
if ((($chilli{'status'} || 'disabled) eq 'enabled') && |
17 |
|
|
($chilli{'guestAccess'} || disabled) eq 'enabled'){ |
18 |
|
|
+ my $downlink = $chilli{'guestDownLink'} || '400'; |
19 |
|
|
+ my $uplink = $chilli{'guestUpLink'} || '64'; |
20 |
|
|
+ $downlink = $downlink * 1000; |
21 |
|
|
+ $uplink = $uplink * 1000; |
22 |
|
|
$OUT =<<END; |
23 |
|
|
|
24 |
|
|
guest NAS-Identify == "chilli", Auth-Type: = Local User-Password == 'guest' |
25 |
|
|
- WISPr-Bandwidth-Max-Down = 400000, WISPr-Bandwidth-Max-Up = 64000 |
26 |
|
|
+ WISPr-Bandwidth-Max-Down = $downlink, WISPr-Bandwidth-Max-Up = $uplink |
27 |
|
|
|
28 |
|
|
END |
29 |
|
|
|
30 |
|
|
-if ($chilli{'status'} eq 'enabled'){ |
31 |
|
|
+if (($chilli{'status'} || 'disabled') eq 'enabled'){ |
32 |
|
|
$OUT =<<END; |
33 |
|
|
|
34 |
|
|
DEFAULT Group == "chilli", NAS-Identifier == "chilli", Auth-Type := unix |