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

7 lines
157 B
Plaintext

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