2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2010 Michael Tremer & Christian Schmidt #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
23 CLR_BLACK_R
='\e[0;30m'
25 CLR_GREEN_R
='\e[0;32m'
26 CLR_YELLOW_R
='\e[0;33m'
28 CLR_PURPLE_R
='\e[0;35m'
30 CLR_WHITE_R
='\e[0;37m'
33 CLR_BLACK_B
='\e[1;30m'
35 CLR_GREEN_B
='\e[1;32m'
36 CLR_YELLOW_B
='\e[1;33m'
38 CLR_PURPLE_B
='\e[1;35m'
40 CLR_WHITE_B
='\e[1;37m'
46 CLR_YELLOW_BG
='\e[43m'
48 CLR_PURPLE_BG
='\e[45m'
56 MSG_HOOK_UP
="${CLR_GREEN_BG}${CLR_WHITE_B} UP ${CLR_RESET}"
57 MSG_HOOK_DOWN
="${CLR_RED_BG}${CLR_WHITE_B} DOWN ${CLR_RESET}"
59 MSG_DEVICE_STATUS_UNKNOWN
="${CLR_GREY_BG}${CLR_BLACK_B} UNKNOWN ${CLR_RESET}"
60 MSG_DEVICE_STATUS_UP
="${CLR_GREEN_BG}${CLR_WHITE_B} UP ${CLR_RESET}"
61 MSG_DEVICE_STATUS_DOWN
="${CLR_RED_BG}${CLR_WHITE_B} DOWN ${CLR_RESET}"
62 MSG_DEVICE_STATUS_NOCARRIER
="${CLR_YELLOW_BG}${CLR_WHITE_B} NO-CARRIER ${CLR_RESET}"
64 MSG_STP_FORWARDING
="${CLR_GREEN_BG}${CLR_WHITE_B} FORWARDING ${CLR_RESET}"
65 MSG_STP_DISCARDING
="${CLR_RED_BG}${CLR_WHITE_B} DISCARDING ${CLR_RESET}"
66 MSG_STP_LEARNING
="${CLR_YELLOW_BG}${CLR_WHITE_B} LEARNING ${CLR_RESET}"
67 MSG_STP_LISTENING
="${CLR_YELLOW_BG}${CLR_WHITE_B} LISTENING ${CLR_RESET}"
68 MSG_STP_BLOCKING
="${CLR_RED_BG}${CLR_WHITE_B} BLOCKING ${CLR_RESET}"