1 |
michel |
1.1 |
diff -urN smeserver-xt_geoip-1.3.1.old/createlinks smeserver-xt_geoip-1.3.1/createlinks |
2 |
|
|
--- smeserver-xt_geoip-1.3.1.old/createlinks 2023-01-11 20:36:20.000000000 +0400 |
3 |
|
|
+++ smeserver-xt_geoip-1.3.1/createlinks 2023-02-15 22:25:40.844000000 +0400 |
4 |
|
|
@@ -32,12 +32,16 @@ |
5 |
|
|
} |
6 |
|
|
|
7 |
|
|
# actions to perform |
8 |
|
|
- |
9 |
|
|
for my $event (qw(xt_geoip-update bootstrap-console-save |
10 |
|
|
console-save smeserver-xt_geoip-update)) |
11 |
|
|
{ |
12 |
|
|
event_link("smeserver-xt_geoip-download-action", $event, "10"); |
13 |
|
|
} |
14 |
|
|
+for my $event (qw(bootstrap-console-save e-smith-packetfilter-update |
15 |
|
|
+ smeserver-xt_geoip-update remote-access-update)) |
16 |
|
|
+{ |
17 |
|
|
+ event_link("xt_geoip_kmod", $event, "15"); |
18 |
|
|
+} |
19 |
|
|
|
20 |
|
|
# for smeserver-manager |
21 |
|
|
my $event= "smeserver-xt_geoip-update"; |
22 |
|
|
@@ -46,6 +50,7 @@ |
23 |
|
|
event_link('routes2-conf', "$event", '80'); |
24 |
|
|
event_link('locales2-conf', "$event", '80'); |
25 |
|
|
|
26 |
|
|
+# backup |
27 |
|
|
use esmith::Build::Backup qw(:all); |
28 |
|
|
backup_includes("smeserver-xt_geoip", qw( |
29 |
|
|
/usr/share/xt_geoip/BE/ |
30 |
|
|
diff -urN smeserver-xt_geoip-1.3.1.old/root/etc/e-smith/events/actions/xt_geoip_kmod smeserver-xt_geoip-1.3.1/root/etc/e-smith/events/actions/xt_geoip_kmod |
31 |
|
|
--- smeserver-xt_geoip-1.3.1.old/root/etc/e-smith/events/actions/xt_geoip_kmod 1970-01-01 04:00:00.000000000 +0400 |
32 |
|
|
+++ smeserver-xt_geoip-1.3.1/root/etc/e-smith/events/actions/xt_geoip_kmod 2023-02-15 22:15:47.263000000 +0400 |
33 |
|
|
@@ -0,0 +1,6 @@ |
34 |
|
|
+#!/bin/bash |
35 |
|
|
+ |
36 |
|
|
+modprobe -r xt_geoip |
37 |
|
|
+weak-modules --add-kernel |
38 |
|
|
+modprobe xt_geoip |
39 |
|
|
+ |
40 |
|
|
diff -urN smeserver-xt_geoip-1.3.1.old/root/etc/yum/post-actions/xt_geoip.action smeserver-xt_geoip-1.3.1/root/etc/yum/post-actions/xt_geoip.action |
41 |
|
|
--- smeserver-xt_geoip-1.3.1.old/root/etc/yum/post-actions/xt_geoip.action 1970-01-01 04:00:00.000000000 +0400 |
42 |
|
|
+++ smeserver-xt_geoip-1.3.1/root/etc/yum/post-actions/xt_geoip.action 2023-02-15 22:17:25.855000000 +0400 |
43 |
|
|
@@ -0,0 +1,4 @@ |
44 |
|
|
+kernel*:any:/etc/e-smith/events/actions/xt_geoip_kmod |
45 |
|
|
+kmod*:any:/etc/e-smith/events/actions/xt_geoip_kmod |
46 |
|
|
+xtables-addons*:any:/etc/e-smith/events/actions/xt_geoip_kmod |
47 |
|
|
+ |