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 2006-03-15 12:51:21.000000000 -0700 |
3 |
+++ mezzanine_patched_e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/ups/ups.conf/UPS 2007-01-13 10:46:04.000000000 -0700 |
4 |
@@ -1,7 +1,9 @@ |
5 |
{ |
6 |
my $model = $nut{Model} || "newhidups"; |
7 |
my $device = $nut{Device} || "/var/lib/ups/hiddev0"; |
8 |
+ my $type = $nut{Type} || ''; |
9 |
$OUT .= "[UPS]\n"; |
10 |
$OUT .= "\tdriver = $model\n"; |
11 |
+ $OUT .= "\tupstype = $type\n" if $type; |
12 |
$OUT .= "\tport = $device\n"; |
13 |
} |