diff -urN e-smith-base-5.8.0.old/root/etc/e-smith/db/configuration/defaults/smartd/status e-smith-base-5.8.0/root/etc/e-smith/db/configuration/defaults/smartd/status --- e-smith-base-5.8.0.old/root/etc/e-smith/db/configuration/defaults/smartd/status 2008-03-26 16:49:00.000000000 +0000 +++ e-smith-base-5.8.0/root/etc/e-smith/db/configuration/defaults/smartd/status 2020-05-14 22:43:00.347561571 +0100 @@ -1 +1 @@ -disabled +enabled diff -Nur e-smith-base-5.8.0.old/root/etc/e-smith/db/configuration/migrate/smartd e-smith-base-5.8.0/root/etc/e-smith/db/configuration/migrate/smartd --- e-smith-base-5.8.0.old/root/etc/e-smith/db/configuration/migrate/smartd 1969-12-31 19:00:00.000000000 -0500 +++ e-smith-base-5.8.0/root/etc/e-smith/db/configuration/migrate/smartd 2020-05-23 01:27:29.718000000 -0400 @@ -0,0 +1,12 @@ +{ +# set status as enabled starting SME10 +# remove the -m option from the property email + + my $email = $DB->get_prop('smartd','email') or return; + + if ($email =~ /^-m (.*)$/) + { + $DB->set_prop('smartd','email', $1); + $DB->set_prop('smartd','status', 'enabled'); + } +} diff -Nur e-smith-base-5.8.0.old/root/etc/e-smith/templates/etc/smartd.conf/10conf e-smith-base-5.8.0/root/etc/e-smith/templates/etc/smartd.conf/10conf --- e-smith-base-5.8.0.old/root/etc/e-smith/templates/etc/smartd.conf/10conf 2008-03-26 12:49:00.000000000 -0400 +++ e-smith-base-5.8.0/root/etc/e-smith/templates/etc/smartd.conf/10conf 2020-05-23 01:27:58.796000000 -0400 @@ -4,5 +4,5 @@ # Sample configuration file for smartd. See man 5 smartd.conf. # Home page is: http://smartmontools.sourceforge.net -"DEVICESCAN -a $smartd{email} $smartd{directive} -I 190 -I 194"; +"DEVICESCAN -a -m $smartd{email} $smartd{directive} -I 190 -I 194"; }