/[smeserver]/rpms/e-smith-base/sme10/e-smith-base-5.8.0-enable_smartd.patch
ViewVC logotype

Contents of /rpms/e-smith-base/sme10/e-smith-base-5.8.0-enable_smartd.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Sun Jun 6 20:38:46 2021 UTC (3 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
5.8.1

1 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
2 --- e-smith-base-5.8.0.old/root/etc/e-smith/db/configuration/defaults/smartd/status 2008-03-26 16:49:00.000000000 +0000
3 +++ e-smith-base-5.8.0/root/etc/e-smith/db/configuration/defaults/smartd/status 2020-05-14 22:43:00.347561571 +0100
4 @@ -1 +1 @@
5 -disabled
6 +enabled
7 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
8 --- e-smith-base-5.8.0.old/root/etc/e-smith/db/configuration/migrate/smartd 1969-12-31 19:00:00.000000000 -0500
9 +++ e-smith-base-5.8.0/root/etc/e-smith/db/configuration/migrate/smartd 2020-05-23 01:27:29.718000000 -0400
10 @@ -0,0 +1,12 @@
11 +{
12 +# set status as enabled starting SME10
13 +# remove the -m option from the property email
14 +
15 + my $email = $DB->get_prop('smartd','email') or return;
16 +
17 + if ($email =~ /^-m (.*)$/)
18 + {
19 + $DB->set_prop('smartd','email', $1);
20 + $DB->set_prop('smartd','status', 'enabled');
21 + }
22 +}
23 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
24 --- e-smith-base-5.8.0.old/root/etc/e-smith/templates/etc/smartd.conf/10conf 2008-03-26 12:49:00.000000000 -0400
25 +++ e-smith-base-5.8.0/root/etc/e-smith/templates/etc/smartd.conf/10conf 2020-05-23 01:27:58.796000000 -0400
26 @@ -4,5 +4,5 @@
27 # Sample configuration file for smartd. See man 5 smartd.conf.
28 # Home page is: http://smartmontools.sourceforge.net
29
30 -"DEVICESCAN -a $smartd{email} $smartd{directive} -I 190 -I 194";
31 +"DEVICESCAN -a -m $smartd{email} $smartd{directive} -I 190 -I 194";
32 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed