1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/sysconfig/ups/SERVER mezzanine_patched_e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/sysconfig/ups/SERVER |
2 |
|
|
--- e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/sysconfig/ups/SERVER 2007-01-04 11:38:52.000000000 -0700 |
3 |
|
|
+++ mezzanine_patched_e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/sysconfig/ups/SERVER 2007-01-04 11:33:45.000000000 -0700 |
4 |
|
|
@@ -1 +1 @@ |
5 |
|
|
-SERVER=yes |
6 |
|
|
+SERVER={ $nut{Master} || 'yes' } |
7 |
|
|
diff -Nur -x '*.orig' -x '*.rej' e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/ups/upsmon.conf/MONITOR mezzanine_patched_e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/ups/upsmon.conf/MONITOR |
8 |
|
|
--- e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/ups/upsmon.conf/MONITOR 2007-01-04 11:38:52.000000000 -0700 |
9 |
|
|
+++ mezzanine_patched_e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/ups/upsmon.conf/MONITOR 2007-01-04 11:38:39.000000000 -0700 |
10 |
|
|
@@ -1 +1,7 @@ |
11 |
|
|
-MONITOR UPS@localhost 1 upsmaster { $nut{MasterPass} } master |
12 |
|
|
+{ |
13 |
|
|
+ if ( ($nut{Master} || 'yes') ne 'no' ) { |
14 |
|
|
+ $OUT = "MONITOR UPS\@localhost 1 upsmaster $nut{MasterPass} master"; |
15 |
|
|
+ } else { |
16 |
|
|
+ $OUT = "MONITOR $nut{SlaveUPS} 1 upsslave $nut{SlavePass} slave"; |
17 |
|
|
+ } |
18 |
|
|
+} |