BIG reorganisation.

This commit is contained in:
Bartek Stalewski 2023-07-13 17:01:13 +02:00
parent 3be3ccbbea
commit e20e00ef8a
122 changed files with 36 additions and 109 deletions

8
_gui/_scripts/sb-network Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
ip a | grep -q wg0 && wg_status="wireguard running " || wg_status=""
case "$(cat /sys/class/net/wlan0/operstate 2>/dev/null)" in
down) printf "${wg_status} no wifi" ;;
up)
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] && printf "${wg_status}"|| printf "${wg_status}no ip" ;;
esac