/[smeserver]/rpms/e-smith-nutUPS/sme8/e-smith-nutUPS-1.2.0-slave.patch
ViewVC logotype

Annotation of /rpms/e-smith-nutUPS/sme8/e-smith-nutUPS-1.2.0-slave.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Tue Oct 7 18:48:20 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
New streams

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     +}

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed