1 |
trevorb |
1.1 |
diff -urN smeserver-pxe-0.1.old/createlinks smeserver-pxe-0.1/createlinks |
2 |
|
|
--- smeserver-pxe-0.1.old/createlinks 1970-01-01 10:00:00.000000000 +1000 |
3 |
|
|
+++ smeserver-pxe-0.1/createlinks 2022-07-03 03:57:42.000000000 +1000 |
4 |
|
|
@@ -0,0 +1,14 @@ |
5 |
|
|
+#!/usr/bin/perl -w |
6 |
|
|
+ |
7 |
|
|
+use esmith::Build::CreateLinks qw(:all); |
8 |
|
|
+use File::Basename; |
9 |
|
|
+use File::Path; |
10 |
|
|
+ |
11 |
|
|
+# our event specific for updating with yum without reboot |
12 |
|
|
+$event = 'smeserver-pxe-update'; |
13 |
|
|
+#add here the path to your templates needed to expand |
14 |
|
|
+event_templates($event, '/etc/dhcpd.conf'); |
15 |
|
|
+#action specific to this package |
16 |
|
|
+#event_link('action', $event, '30'); |
17 |
|
|
+#services we need to restart |
18 |
|
|
+event_services($event, 'dhcpd' => 'restart'); |