]> git.ipfire.org Git - ipfire-2.x.git/commit
apcupsd: Make apcupsd link in services page access its apcupsd WUI menu.
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 4 Sep 2023 16:52:31 +0000 (18:52 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Sep 2023 15:15:53 +0000 (15:15 +0000)
commit9a4946cfa98666bc6cb0dbf15cad4e56d9b32cd6
tree43a6d16f6db29e863245f28a53bede31d2d05c46
parentc52a9716a12c27897449ba98cdb8c1c063d0dcc8
apcupsd: Make apcupsd link in services page access its apcupsd WUI menu.

- In the services WUI page any addon that has a WUI menu page defined, such as Samba,
   Guardian etc, has the addon name shown in underlined red which is a link to the addon
   cgi page. This works for the other addons as the addon cgi name is the same as the
   addon name. I have identified that this is not the case for apcupsd, because the cgi
   page is called upsstats.cgi
- This patch adjusts the cgi name to allow apcupsd to also be shown in underlined red.
- The lfs file copies the upsstats.cgi file to one named apcupsd.cgi
- The apcupsd menu file has the cgi name changed from upsstats.cgi to apcupsd.cgi
- The rootfile is updated to also include the apcupsd.cgi file with the others.
- Tested in my vm testbed by making the above changes in the code and the apcupsd addon
   was then shown in underlined red, which acted as a link to the apcupsd status WUI page.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/menu/EX-apcupsd.menu
config/rootfiles/packages/apcupsd
lfs/apcupsd