--- rpms/e-smith-base/sme10/e-smith-base-5.8.0-enable_smartd.patch 2020/05/17 16:19:53 1.1 +++ rpms/e-smith-base/sme10/e-smith-base-5.8.0-enable_smartd.patch 2020/05/23 05:31:29 1.2 @@ -4,3 +4,29 @@ diff -urN e-smith-base-5.8.0.old/root/et @@ -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"; + }