sysmngr: remove deprecated hw.board.hasWifi use

This commit is contained in:
Erik Karlsson 2025-03-28 11:36:46 +01:00
parent dcfa48d1f7
commit 21c3354b31
2 changed files with 2 additions and 4 deletions

View file

@ -42,7 +42,6 @@ function get_cpu_temperature()
function get_temperature_status()
{
local hasWifi="$(db -q get hw.board.hasWifi)"
local hasSfp="$(db -q get hw.board.hasSfp)"
json_init
@ -54,7 +53,7 @@ function get_temperature_status()
json_add_int "temperature" "$(get_cpu_temperature)"
json_close_object
[ "$hasWifi" = "1" ] && get_wlan_temperature
[ -s /etc/config/wireless ] && get_wlan_temperature
[ "$hasSfp" = "1" ] && {
json_add_object

View file

@ -20,7 +20,6 @@ function get_cpu_temperature()
function get_temperature_status()
{
local hasWifi="$(db -q get hw.board.hasWifi)"
local hasSfp="$(db -q get hw.board.hasSfp)"
json_init
@ -32,7 +31,7 @@ function get_temperature_status()
json_add_int "temperature" "$(get_cpu_temperature)"
json_close_object
[ "$hasWifi" = "1" ] && get_wlan_temperature
[ -s /etc/config/wireless ] && get_wlan_temperature
[ "$hasSfp" = "1" ] && {
json_add_object