From a7d30006575ebd05e4577449166ec521e1919b46 Mon Sep 17 00:00:00 2001 From: Ryan Wagoner Date: Mon, 19 Feb 2007 19:46:38 +0000 Subject: -add checks and status statements to rc file -cleanup whitespace in nut xml -only create /var/db/nut if it does not exist --- packages/nut/nut.inc | 44 +++++++++++---- packages/nut/nut.xml | 150 ++++++++++++++++++++++++++------------------------- 2 files changed, 110 insertions(+), 84 deletions(-) diff --git a/packages/nut/nut.inc b/packages/nut/nut.inc index f23de98c..b26b405f 100644 --- a/packages/nut/nut.inc +++ b/packages/nut/nut.inc @@ -292,23 +292,43 @@ POWERDOWNFLAG /etc/killpower EOD; $stop = << - + UPS Monitoring monitor @@ -48,22 +48,22 @@ + + - + <strong>Local UPS Name</strong> name input - + <strong>Local UPS Model</strong> driver @@ -74,15 +74,15 @@ + + genericups01 + + + + genericups02 + + newhidups01 + + newhidups02 + + + newhidups05 + + + + + + + + + + + + + + + + + + + + newhidups07 + + newhidups13 + + newhidups14 + + + + + + + newhidups15 + + @@ -357,9 +361,9 @@ - - + + + Local UPS Generic Type upstype @@ -368,7 +372,7 @@ + + + + @@ -422,37 +426,37 @@ Local Remote Access Address <br>(ex: 192.168.1.0/24) allowaddr input - + Local Remote Access User allowuser input - + Local Remote Acces Password allowpass password - + <strong>Remote UPS Name</strong> remotename input - + <strong>Remote UPS Address</strong> <br>(ex: 192.168.1.10) remoteaddr input - + <strong>Remote UPS User</strong> remoteuser input - + <strong>Remote UPS Password</strong> remotepass password - + before_form_nut(&$pkg); -- cgit v1.2.3