Merge pull request #198 from noon92/new_working

Change "good" color in menus to blue
This commit is contained in:
noon92 2025-01-13 20:45:45 +02:00 • committed by GitHub
commit 16f1a14fbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -165,7 +165,7 @@ utilities() {
local title="Utilities"
while true; do
local option=""
option=$(dialog --cancel-label "Back" --menu "$title" 15 40 4 \
option=$(dialog --cancel-label "Back" --menu "$title" 16 40 4 \
1 "Set system timezone" \
2 "Kernel modules" \
3 "Re-run first-boot script" \
@ -282,7 +282,7 @@ meshtasticd_settings() {
while true; do
echo "Checking Meshtasticd service state..."
if echo "$(systemctl status meshtasticd)" | grep -q "active (running)"; then
local service_state="\Z2\Zuonline\Zn"
local service_state="\Z4\Zuonline\Zn"
elif echo "$(systemctl status meshtasticd)" | grep -q "inactive (dead)"; then
local service_state="\Z1\Zuoffline\Zn"
else
@ -520,4 +520,4 @@ while true; do
esac
done
exit 0
exit 0

View file

@ -89,7 +89,7 @@ Hostname: $(hostname).local"
if [ "$(ip link show wlan0)" ]; then # if wlan0 exists
mac_address_line="MAC address: $(ifconfig wlan0 | grep ether | awk '{print $2}')\n"
if [ "$(cat /etc/wifi_state.txt)" = "up" ]; then
wifi_status="\033[4m\033[0;32menabled\033[0m"
wifi_status="\033[4m\033[0;34menabled\033[0m"
else
if ip link show wlan0 &>/dev/null; then # if wlan0 exists
wifi_status="\033[0;31mdisabled\033[0m"