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

Diff 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 | View Patch Patch

Revision 1.1 by chrissn, Sun May 17 16:19:53 2020 UTC Revision 1.2 by jpp, Sat May 23 05:31:29 2020 UTC
# Line 4  diff -urN e-smith-base-5.8.0.old/root/et Line 4  diff -urN e-smith-base-5.8.0.old/root/et
4  @@ -1 +1 @@  @@ -1 +1 @@
5  -disabled  -disabled
6  +enabled  +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     }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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