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 --- e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/ups/ups.conf/UPS 2007-04-10 05:55:30.000000000 -0600 +++ mezzanine_patched_e-smith-nutUPS-1.2.0/root/etc/e-smith/templates/etc/ups/ups.conf/UPS 2007-04-10 05:55:06.000000000 -0600 @@ -4,6 +4,7 @@ my $type = $nut{Type} || ''; $OUT .= "[UPS]\n"; $OUT .= "\tdriver = $model\n"; - $OUT .= "\tupstype = $type\n" if $type; + if ($model eq 'genericups') + { $OUT .= "\tupstype = $type\n" if $type; } $OUT .= "\tport = $device\n"; }