smeserver-nutUPS/root/etc/e-smith/db/configuration/migrate/nutModel

7 lines
157 B
Plaintext
Raw Normal View History

{
my $nutmod = $DB->get_prop('nut', 'Model');
return unless $nutmod;
$DB->set_prop('nut', 'Model', 'usbhid-ups') if ($nutmod eq 'newhidups');
}