J'ai mis à jour mon kernel manuellement (comme j'ai toujours l'habitude de faire) par la compilation, et je me suis rendu compte qu'une option avait été supprimée car marquée comme dépréciée. Il s'agit de "WIRELESS_EXT_SYSFS", qui créeait une arborescence dans sys/call/.../net/wlan/wireless avec plusieurs informations comme la qualité du signal wifi.
J'utilise donc un script pour afficher cette valeur dans ma wibox, et vu que cette valeur n'existe plus, mon script ne fonctionne donc plus.
J'aimerais donc savoir si cette arborescence a été remplacée ou simplement supprimée.
Par avance merci à ceux qui m'aideront,
Le script :
Code : Tout sélectionner
-- WLAN widget
function wifistatus()
local wifion, wifistrength, f
f = io.input("/sys/class/net/wlan0/carrier")
wifion = io.read("*number")
f:close()
if wifion == 1 then
f = io.input("/sys/class/net/wlan0/wireless/link")
wifistrength = io.read("*number")
f:close()
if wifistrength > 49 then
return '<span color = "green">' .. wifistrength .. '</span>%'
elseif wifistrength > 39 then
return '<span color = "yellow">' .. wifistrength .. '</span>%'
elseif wifistrength > 29 then
return '<span color = "orange">' .. wifistrength .. '</span>%'
else
return '<span color = "red">' .. wifistrength .. '</span>%'
end
return '<span color = "red">off</span>'
end
end
wifiinfo = widget({ type = "textbox" , name = "wifiinfo" })
-- Assign a hook to update info
wifistatus__timer = timer({timeout = 1})
wifistatus__timer:add_signal("timeout", function() wifiinfo.text = "| WLAN: " .. wifistatus() .. " " end)
wifistatus__timer:start()