/[smeserver]/rpms/e-smith-nutUPS/sme10/e-smith-nutUPS-2.6.0-bz9423-bz11146.patch
ViewVC logotype

Diff of /rpms/e-smith-nutUPS/sme10/e-smith-nutUPS-2.6.0-bz9423-bz11146.patch

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

Revision 1.1 by jpp, Wed Nov 18 22:12:50 2020 UTC Revision 1.2 by jpp, Wed Nov 18 22:23:34 2020 UTC
# Line 36  diff -Nur e-smith-nutUPS-2.6.0.old/root/ Line 36  diff -Nur e-smith-nutUPS-2.6.0.old/root/
36  +$nutstatus = $nut{status} || 'disabled';  +$nutstatus = $nut{status} || 'disabled';
37  +$master = $nut{Master} || 'yes';  +$master = $nut{Master} || 'yes';
38  +  +
39  +if ($nutstatus eq ''enabled') {  +if ($nutstatus eq 'enabled') {
40  +       $OUT .= "enable         nut-server.service" if ($master eq  'yes');  +       $OUT .= "enable         nut-server.service" if ($master eq  'yes');
41  +       $OUT .= "disabled       nut-server.service" unless ($master eq  'yes');  +       $OUT .= "disable        nut-server.service" unless ($master eq  'yes');
42  +       $OUT .= "enable         nut-monitor.service";  +       $OUT .= "enable         nut-monitor.service";
43  +  }  +  }
44  +else  +else


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