1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-nutUPS-1.2.0/root/etc/e-smith/db/configuration/migrate/nutModel mezzanine_patched_e-smith-nutUPS-1.2.0/root/etc/e-smith/db/configuration/migrate/nutModel |
2 |
--- e-smith-nutUPS-1.2.0/root/etc/e-smith/db/configuration/migrate/nutModel 2007-11-30 12:16:54.000000000 +0000 |
3 |
+++ mezzanine_patched_e-smith-nutUPS-1.2.0/root/etc/e-smith/db/configuration/migrate/nutModel 2007-11-30 12:12:14.000000000 +0000 |
4 |
@@ -1,4 +1,6 @@ |
5 |
{ |
6 |
- my $pool = $DB->get_prop('nut', 'Model'); |
7 |
- $DB->set_prop('nut', 'Model', 'usbhid-ups') if ($pool eq 'newhidups'); |
8 |
+ my $nutmod = $DB->get_prop('nut', 'Model'); |
9 |
+ return unless $nutmod; |
10 |
+ $DB->set_prop('nut', 'Model', 'usbhid-ups') if ($nutmod eq 'newhidups'); |
11 |
} |
12 |
+ |