1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/ups/ups.conf/UPS mezzanine_patched_e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/ups/ups.conf/UPS |
2 |
|
|
--- e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/ups/ups.conf/UPS 2007-06-01 03:36:58.000000000 -0600 |
3 |
|
|
+++ mezzanine_patched_e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/ups/ups.conf/UPS 2007-06-01 03:30:17.000000000 -0600 |
4 |
|
|
@@ -1,10 +1,10 @@ |
5 |
|
|
{ |
6 |
|
|
my $model = $nut{Model} || "newhidups"; |
7 |
|
|
my $device = $nut{Device} || "/var/lib/ups/hiddev0"; |
8 |
|
|
- my $type = $nut{Type} || ''; |
9 |
|
|
+ my $type = $nut{Type}; |
10 |
|
|
$OUT .= "[UPS]\n"; |
11 |
|
|
$OUT .= "\tdriver = $model\n"; |
12 |
|
|
if ($model eq 'genericups') |
13 |
|
|
- { $OUT .= "\tupstype = $type\n" if $type; } |
14 |
|
|
+ { $OUT .= "\tupstype = $type\n" if defined $type; } |
15 |
|
|
$OUT .= "\tport = $device\n"; |
16 |
|
|
} |