mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
sysmngr: remove deprecated hw.board.hasWifi use
This commit is contained in:
parent
dcfa48d1f7
commit
21c3354b31
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue