5 lines
184 B
Bash
Executable File
5 lines
184 B
Bash
Executable File
#!/bin/bash
|
|
print_wifi(){
|
|
echo -e "$(cat /sys/class/net/w*/operstate | sed "s/down/❌/;s/up/📶/") $(cat /sys/class/net/e*/operstate | sed "s/down/❌/;s/up/🌐/")"
|
|
}
|
|
print_wifi |