1 |
vip-ire |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/chilli.conf/95macallowed mezzanine_patched_smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/chilli.conf/95macallowed |
2 |
|
|
--- smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/chilli.conf/95macallowed 1970-01-01 01:00:00.000000000 +0100 |
3 |
|
|
+++ mezzanine_patched_smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/chilli.conf/95macallowed 2010-04-22 19:43:14.000000000 +0200 |
4 |
|
|
@@ -0,0 +1,15 @@ |
5 |
|
|
+ |
6 |
|
|
+macallowlocal |
7 |
|
|
+{ |
8 |
|
|
+my @macalloweds = split(/[;,]/, ($chilli{'macallowed'} || '')); |
9 |
|
|
+ |
10 |
|
|
+$OUT = ''; |
11 |
|
|
+ |
12 |
|
|
+# TODO: check the entry with a good regex |
13 |
|
|
+ |
14 |
|
|
+foreach (@macalloweds){ |
15 |
|
|
+ $_ =~ s/:/-/g; |
16 |
|
|
+ $OUT .= 'macallowed '.uc($_)."\n"; |
17 |
|
|
+} |
18 |
|
|
+ |
19 |
|
|
+} |