From f9047ac8315d2ea129c2307765d3c60d635b0fc4 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Thu, 31 Oct 2024 14:49:24 -0400 Subject: [PATCH] update helper tools; --- tools/colorize-fne.sh | 34 ++++++++++++++++++++++++++++++++++ tools/dvm-watchdog.sh | 2 -- tools/fne-watchdog.sh | 2 -- tools/start-dvm-fne.sh | 2 -- tools/start-dvm.sh | 2 -- tools/stop-dvm.sh | 2 -- tools/stop-watchdog.sh | 2 -- 7 files changed, 34 insertions(+), 12 deletions(-) create mode 100755 tools/colorize-fne.sh diff --git a/tools/colorize-fne.sh b/tools/colorize-fne.sh new file mode 100755 index 00000000..578ea6d0 --- /dev/null +++ b/tools/colorize-fne.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# SPDX-License-Identifier: GPL-2.0-only +#/** +#* Digital Voice Modem - Host Software +#* GPLv2 Open Source. Use is subject to license terms. +#* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +#* +#*/ +#/* +#* Copyright (C) 2022 by Bryan Biedenkapp N2PLL +#* +#* This program is free software; you can redistribute it and/or modify +#* it under the terms of the GNU General Public License as published by +#* the Free Software Foundation; either version 2 of the License, or +#* (at your option) any later version. +#* +#* This program is distributed in the hope that it will be useful, +#* but WITHOUT ANY WARRANTY; without even the implied warranty of +#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +#* GNU General Public License for more details. +#* +#* You should have received a copy of the GNU General Public License +#* along with this program; if not, write to the Free Software +#* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +#*/ +LOG_COLOR="s#W:#\x1b[0m\x1b[1m\x1b[33m&#; s#E:#\x1b[0m\x1b[1m\x1b[31m&#; s#M:#\x1b[0m&#; s#I:#\x1b[0m&#; s#D:#\x1b[1m\x1b[34m&#; s#U:#\x1b[44m\x1b[1m\x1b[33m&#;" + +P25_COLOR="s#LDU#\x1b[36m&#; s#TDU#\x1b[0m\x1b[32m&#; s#HDU#\x1b[0m\x1b[32m&#; s#TSDU#\x1b[0m\x1b[35m&#" +AFF_COLOR="s#Affiliations#\x1b[1m\x1b[36m&#;" + +RF_HIGHLIGHT="s#(RF)#\x1b[1m\x1b[34m&\x1b[0m#;" +NET_HIGHLIGHT="s#(NET)#\x1b[1m\x1b[36m&\x1b[0m#;" + +sed "${LOG_COLOR}; ${RF_HIGHLIGHT}; ${NET_HIGHLIGHT}; ${P25_COLOR}; ${AFF_COLOR}" \ No newline at end of file diff --git a/tools/dvm-watchdog.sh b/tools/dvm-watchdog.sh index 231041ea..c46a9104 100755 --- a/tools/dvm-watchdog.sh +++ b/tools/dvm-watchdog.sh @@ -5,8 +5,6 @@ #* GPLv2 Open Source. Use is subject to license terms. #* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. #* -#* @package DVM / Host Software -#* #*/ #/* #* Copyright (C) 2022 by Bryan Biedenkapp N2PLL diff --git a/tools/fne-watchdog.sh b/tools/fne-watchdog.sh index 3e81c0ef..28fe6482 100755 --- a/tools/fne-watchdog.sh +++ b/tools/fne-watchdog.sh @@ -5,8 +5,6 @@ #* GPLv2 Open Source. Use is subject to license terms. #* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. #* -#* @package DVM / Host Software -#* #*/ #/* #* Copyright (C) 2022 by Bryan Biedenkapp N2PLL diff --git a/tools/start-dvm-fne.sh b/tools/start-dvm-fne.sh index b248eec2..8e4f05b0 100755 --- a/tools/start-dvm-fne.sh +++ b/tools/start-dvm-fne.sh @@ -5,8 +5,6 @@ #* GPLv2 Open Source. Use is subject to license terms. #* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. #* -#* @package DVM / Host Software -#* #*/ #/* #* Copyright (C) 2022 by Bryan Biedenkapp N2PLL diff --git a/tools/start-dvm.sh b/tools/start-dvm.sh index 252fbfba..73d72006 100755 --- a/tools/start-dvm.sh +++ b/tools/start-dvm.sh @@ -5,8 +5,6 @@ #* GPLv2 Open Source. Use is subject to license terms. #* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. #* -#* @package DVM / Host Software -#* #*/ #/* #* Copyright (C) 2022 by Bryan Biedenkapp N2PLL diff --git a/tools/stop-dvm.sh b/tools/stop-dvm.sh index 0265e9f3..60a0e32e 100755 --- a/tools/stop-dvm.sh +++ b/tools/stop-dvm.sh @@ -5,8 +5,6 @@ #* GPLv2 Open Source. Use is subject to license terms. #* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. #* -#* @package DVM / Host Software -#* #*/ #/* #* Copyright (C) 2022 by Bryan Biedenkapp N2PLL diff --git a/tools/stop-watchdog.sh b/tools/stop-watchdog.sh index 3852b474..022e2407 100755 --- a/tools/stop-watchdog.sh +++ b/tools/stop-watchdog.sh @@ -5,8 +5,6 @@ #* GPLv2 Open Source. Use is subject to license terms. #* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. #* -#* @package DVM / Host Software -#* #*/ #/* #* Copyright (C) 2022 by Bryan Biedenkapp N2PLL