IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
23.74k stars 1.28k forks source link

[Bug] Casa not see wlan iface #909

Closed CosmoFox closed 1 year ago

CosmoFox commented 1 year ago

Describe the bug Casa v0.4.1 dont show at monitoring panel wlan iface.

Screenshots bug

Desktop (please complete the following information):

CosmoFox commented 1 year ago

Tested with another wifi card. Same problem! OS: ubuntu-22.04 CPU: intel i7-1260p WIFI: Intel AX211NGW

LinkLeong commented 1 year ago

We tested it and did not find the situation you described. You can run source /usr/share/casaos/shell/helper.sh ;GetNetCard 2 to see the result, which is a query for the name of the physical NIC.

CosmoFox commented 1 year ago

image

CosmoFox commented 1 year ago

But wlo1 here

image

CosmoFox commented 1 year ago

image

command ls /sys/class/net/ | grep -v "$(ls /sys/devices/virtual/net/)" removing wLO1

CosmoFox commented 1 year ago

but if add new key "-w" - look like a solution image

CosmoFox commented 1 year ago

Yeah! It`s works! Pls add this to next version. image

jerrykuku commented 1 year ago

This is very important information for us and we appreciate your feedback. I think the "lo" in the virtual network causes the removal of "wlo1". I will contact @LinkLeong to fix this code.

CosmoFox commented 1 year ago

This is very important information for us and we appreciate your feedback. I think the "lo" in the virtual network causes the removal of "wlo1". I will contact @LinkLeong to fix this code.

There is an easier answer: if grep -v : is "abc" in "abcd" - true. It`s 'partial' search

if grep -v -w : is "abc" in "abcd" - false. It`s exact what you need, because there can be many similar names in the system and you use an exception by names of interfaces

raller1028 commented 1 year ago

@CosmoFox casaos0.4.3-alpha has been released, can you help test if this issue still exists? Update command: curl -fsSL https://get.casaos.io/update/v0.4.3-alpha | sudo bash

CosmoFox commented 1 year ago

@CosmoFox casaos0.4.3-alpha has been released, can you help test if this issue still exists? Update command: curl -fsSL https://get.casaos.io/update/v0.4.3-alpha | sudo bash

will alpha version update later to stable in regular way?

CosmoFox commented 1 year ago

@CosmoFox casaos0.4.3-alpha has been released, can you help test if this issue still exists? Update command: curl -fsSL https://get.casaos.io/update/v0.4.3-alpha | sudo bash

Any way. Yes I can. Installed. And yes - it`s works. So U can close ticket.