HomePhabricator

batman: FreeBSD and OpenBSD (sysctl)

Authored by netstar on Mon, Dec 2, 12:47 PM.

Description

batman: FreeBSD and OpenBSD (sysctl)

After the work on the sysinfo gadgets for Linux the BSD variant
code was a little bit of an afterthought. These changes provide
us with unlimited battery/sysinfo gadgets and reliable status
for our battery or batteries and our power supply.

This patch allows us to add and remove (many) batman gadgets to
the desktop without negatively affecting existing instances.
It also takes into account additional sysinfo gadgets that include
a batman instance.

Iterating through the existing array of sysinfo gadgets to find
multiple instances and apply changes it not ideal but it does
not affect the Linux code, and keeps this change relatively
simple.

Tested on FreeBSD and OpenBSD with various hardware setups.
Thanks to Peter2121 (Quelrond) for his testing.

There is work to now improve batman's Linux behaviour to match that
of the behaviour on BSD systems.

Details

Committed
netstarMon, Dec 2, 12:47 PM
Parents
rE6b70114c6d19: battery/batman: Various Improvements.
Branches
Unknown
Tags
Unknown