#!/bin/bash
#--------------------------------------------------------------------------------------------------------
# Name: Linux Lite - Lite Widget Firewall Check
# Description: Script to check and display current Firewall status
# Architecture: all
# Author: Jerry Bezencon
# Website: https://www.linuxliteos.com
# Licence: GPLv2
#--------------------------------------------------------------------------------------------------------

# Output
MSG_DIS="disabled"
MSG_ENA="enabled"

CONKY_COLOR="" # it will be placed by script with 3 following options
CONKY_RED="\${color3 #ff4343}"
CONKY_GREEN="\${color2 #9fee62}"
NC='\033[0m' # No Color

if [ `systemctl is-active firewalld` = inactive ]
then
    echo "${CONKY_RED}$MSG_DIS"
else
    echo "${CONKY_GREEN}$MSG_ENA"
fi

exit
