1 |
brianr |
1.1 |
diff -urN smeserver-bridge-interface-0.2.old/createlinks smeserver-bridge-interface-0.2/createlinks |
2 |
|
|
--- smeserver-bridge-interface-0.2.old/createlinks 2013-11-11 17:18:21.000000000 +0000 |
3 |
|
|
+++ smeserver-bridge-interface-0.2/createlinks 2021-01-19 12:03:55.089684911 +0000 |
4 |
|
|
@@ -2,12 +2,41 @@ |
5 |
|
|
|
6 |
|
|
use esmith::Build::CreateLinks qw(:all); |
7 |
|
|
|
8 |
|
|
-# Start and stop links |
9 |
|
|
+# our event specific for updating with yum without reboot |
10 |
|
|
+$event = "smeserver-bridge-interface-update"; |
11 |
|
|
|
12 |
|
|
-service_link_enhanced("bridge", "S80", "7"); |
13 |
|
|
-service_link_enhanced("bridge", "K01", "6"); |
14 |
|
|
-service_link_enhanced("bridge", "K01", "0"); |
15 |
|
|
-service_link_enhanced("bridge", "K01", "1"); |
16 |
|
|
+ |
17 |
|
|
+#add here the path to your templates needed to expand |
18 |
|
|
+#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event |
19 |
|
|
+ |
20 |
|
|
+foreach my $file (qw( |
21 |
|
|
+ /etc/systemd/system-preset/49-koozali.preset |
22 |
|
|
+ |
23 |
|
|
+ |
24 |
|
|
+)) |
25 |
|
|
+{ |
26 |
|
|
+ templates2events( $file, $event ); |
27 |
|
|
+} |
28 |
|
|
+ |
29 |
|
|
+ |
30 |
|
|
+#action needed in case we have a systemd unit |
31 |
|
|
+event_link("systemd-default", $event, "10"); |
32 |
|
|
+event_link("systemd-reload", $event, "50"); |
33 |
|
|
+ |
34 |
|
|
+#action specific to this package |
35 |
|
|
+event_link("bridge-disable", "$event", "02"); |
36 |
|
|
+event_link("bridge-enable", "$event", "98"); |
37 |
|
|
+ |
38 |
|
|
+ |
39 |
|
|
+#services we need to restarta |
40 |
|
|
+#none? |
41 |
|
|
+ |
42 |
|
|
+ |
43 |
|
|
+# Start and stop links - SME9 |
44 |
|
|
+#service_link_enhanced("bridge", "S80", "7"); |
45 |
|
|
+#service_link_enhanced("bridge", "K01", "6"); |
46 |
|
|
+#service_link_enhanced("bridge", "K01", "0"); |
47 |
|
|
+#service_link_enhanced("bridge", "K01", "1"); |
48 |
|
|
|
49 |
|
|
foreach my $event (qw/console-save bootstrap-console-save/){ |
50 |
|
|
event_link("bridge-disable", "$event", "02"); |